From 988630d5c03f1c6e80e05b55047d45e39612cce7 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 21 Apr 2023 15:58:07 +0200 Subject: [PATCH] Reorganized utilities and their usage --- .../schema/ResourceRegistrySchemaClientImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/schema/ResourceRegistrySchemaClientImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/schema/ResourceRegistrySchemaClientImpl.java index e5d8c9f..eb36b62 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/schema/ResourceRegistrySchemaClientImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/schema/ResourceRegistrySchemaClientImpl.java @@ -17,9 +17,9 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaE import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException; import org.gcube.informationsystem.resourceregistry.api.rest.TypePath; import org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPUtility; -import org.gcube.informationsystem.resourceregistry.api.utils.Utility; import org.gcube.informationsystem.types.TypeMapper; import org.gcube.informationsystem.types.reference.Type; +import org.gcube.informationsystem.utils.TypeUtility; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -99,7 +99,7 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC @Override public boolean exist(Class clz) throws ResourceRegistryException { try { - String typeName = Utility.getTypeName(clz); + String typeName = TypeUtility.getTypeName(clz); return exist(typeName); } catch(ResourceRegistryException e) { throw e; @@ -139,7 +139,7 @@ public class ResourceRegistrySchemaClientImpl implements ResourceRegistrySchemaC public List read(Class clz, Boolean polymorphic) throws SchemaNotFoundException, ResourceRegistryException { try { - String typeName = Utility.getTypeName(clz); + String typeName = TypeUtility.getTypeName(clz); String res = read(typeName, polymorphic); return TypeMapper.deserializeTypeDefinitions(res); } catch(ResourceRegistryException e) {