Aligned APIs with IS model refactoring

This commit is contained in:
Luca Frosini 2019-11-05 18:46:52 +01:00
parent 43eb9df53a
commit 99ab60916f
3 changed files with 0 additions and 4 deletions

View File

@ -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 <ISM extends ISManageable> List<TypeDefinition> getSchema(Class<ISM> clazz, Boolean polymorphic)
throws SchemaNotFoundException, ResourceRegistryException;

View File

@ -133,7 +133,6 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
}
}
@SuppressWarnings("rawtypes")
@Override
public <ISM extends ISManageable> List<TypeDefinition> getSchema(Class<ISM> clazz, Boolean polymorphic)
throws SchemaNotFoundException, ResourceRegistryException {

View File

@ -51,14 +51,12 @@ public class ResourceRegistryClientTest extends ContextTest {
@Test
public void testGetFacetSchema() throws SchemaNotFoundException, ResourceRegistryException {
@SuppressWarnings("rawtypes")
List<TypeDefinition> typeDefinitions = resourceRegistryClient.getSchema(ContactFacet.class, true);
logger.trace("{}", typeDefinitions);
}
@Test
public void testGetResourceSchema() throws SchemaNotFoundException, ResourceRegistryException {
@SuppressWarnings("rawtypes")
List<TypeDefinition> typeDefinitions = resourceRegistryClient.getSchema(HostingNode.class, true);
logger.trace("{}", typeDefinitions);
}