diff --git a/src/main/java/org/gcube/informationsystem/discovery/Discovery.java b/src/main/java/org/gcube/informationsystem/discovery/Discovery.java index e4a4eed..9ed6ec4 100644 --- a/src/main/java/org/gcube/informationsystem/discovery/Discovery.java +++ b/src/main/java/org/gcube/informationsystem/discovery/Discovery.java @@ -63,7 +63,7 @@ public class Discovery { } } - protected void analizeISM(Class clz) { + protected void analizeElement(Class clz) { logger.trace("Analizyng {}", clz); if(!clz.isInterface()) { @@ -86,7 +86,7 @@ public class Discovery { for(Class interfaceClass : interfaces) { @SuppressWarnings("unchecked") Class parent = (Class) interfaceClass; - analizeISM(parent); + analizeElement(parent); } if(root == PropertyElement.class) { @@ -104,14 +104,14 @@ public class Discovery { if(root.isAssignableFrom(tClass)) { @SuppressWarnings("unchecked") Class type = (Class) tClass; - analizeISM(type); + analizeElement(type); } } } else if(root.isAssignableFrom(m.getReturnType())) { @SuppressWarnings("unchecked") Class type = (Class) m.getReturnType(); - analizeISM(type); + analizeElement(type); } } @@ -126,7 +126,7 @@ public class Discovery { for(Class clz : classes) { @SuppressWarnings("unchecked") Class ism = (Class) clz; - analizeISM(ism); + analizeElement(ism); } } diff --git a/src/test/java/org/gcube/informationsystem/utils/discovery/ISMDiscoveryTest.java b/src/test/java/org/gcube/informationsystem/utils/discovery/ISMDiscoveryTest.java index d9ebb7f..a90409f 100644 --- a/src/test/java/org/gcube/informationsystem/utils/discovery/ISMDiscoveryTest.java +++ b/src/test/java/org/gcube/informationsystem/utils/discovery/ISMDiscoveryTest.java @@ -34,7 +34,7 @@ public class ISMDiscoveryTest { @Test public void testISMDIscovery() { Discovery propertyDiscovery = new Discovery<>(PropertyElement.class); - propertyDiscovery.analizeISM(PropertyType.class); + propertyDiscovery.analizeElement(PropertyType.class); }