From 99ab60916f3f92c8971818537c6f6a5d05b761ef Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 5 Nov 2019 18:46:52 +0100 Subject: [PATCH] Aligned APIs with IS model refactoring --- .../resourceregistry/client/ResourceRegistryClient.java | 1 - .../resourceregistry/client/ResourceRegistryClientImpl.java | 1 - .../resourceregistry/client/ResourceRegistryClientTest.java | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClient.java b/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClient.java index 78f4260..cc0c618 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClient.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClient.java @@ -109,7 +109,6 @@ public interface ResourceRegistryClient { public String query(final String query, final int limit, final String fetchPlan, boolean raw) throws InvalidQueryException, ResourceRegistryException; - @SuppressWarnings("rawtypes") public List getSchema(Class clazz, Boolean polymorphic) throws SchemaNotFoundException, ResourceRegistryException; diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientImpl.java index fc6238f..9f3b30c 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientImpl.java @@ -133,7 +133,6 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient { } } - @SuppressWarnings("rawtypes") @Override public List getSchema(Class clazz, Boolean polymorphic) throws SchemaNotFoundException, ResourceRegistryException { diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java index 939001b..9ec3ede 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java @@ -51,14 +51,12 @@ public class ResourceRegistryClientTest extends ContextTest { @Test public void testGetFacetSchema() throws SchemaNotFoundException, ResourceRegistryException { - @SuppressWarnings("rawtypes") List typeDefinitions = resourceRegistryClient.getSchema(ContactFacet.class, true); logger.trace("{}", typeDefinitions); } @Test public void testGetResourceSchema() throws SchemaNotFoundException, ResourceRegistryException { - @SuppressWarnings("rawtypes") List typeDefinitions = resourceRegistryClient.getSchema(HostingNode.class, true); logger.trace("{}", typeDefinitions); }