Fixed function name
This commit is contained in:
parent
6fcead807d
commit
019dabf8a8
|
@ -63,7 +63,7 @@ public class Discovery<E extends Element> {
|
|||
}
|
||||
}
|
||||
|
||||
protected void analizeISM(Class<? extends E> clz) {
|
||||
protected void analizeElement(Class<? extends E> clz) {
|
||||
logger.trace("Analizyng {}", clz);
|
||||
|
||||
if(!clz.isInterface()) {
|
||||
|
@ -86,7 +86,7 @@ public class Discovery<E extends Element> {
|
|||
for(Class<?> interfaceClass : interfaces) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Class<E> parent = (Class<E>) interfaceClass;
|
||||
analizeISM(parent);
|
||||
analizeElement(parent);
|
||||
}
|
||||
|
||||
if(root == PropertyElement.class) {
|
||||
|
@ -104,14 +104,14 @@ public class Discovery<E extends Element> {
|
|||
if(root.isAssignableFrom(tClass)) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Class<E> type = (Class<E>) tClass;
|
||||
analizeISM(type);
|
||||
analizeElement(type);
|
||||
}
|
||||
}
|
||||
|
||||
} else if(root.isAssignableFrom(m.getReturnType())) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Class<E> type = (Class<E>) m.getReturnType();
|
||||
analizeISM(type);
|
||||
analizeElement(type);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,7 @@ public class Discovery<E extends Element> {
|
|||
for(Class<?> clz : classes) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Class<E> ism = (Class<E>) clz;
|
||||
analizeISM(ism);
|
||||
analizeElement(ism);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ public class ISMDiscoveryTest {
|
|||
@Test
|
||||
public void testISMDIscovery() {
|
||||
Discovery<PropertyElement> propertyDiscovery = new Discovery<>(PropertyElement.class);
|
||||
propertyDiscovery.analizeISM(PropertyType.class);
|
||||
propertyDiscovery.analizeElement(PropertyType.class);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue