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);
|
logger.trace("Analizyng {}", clz);
|
||||||
|
|
||||||
if(!clz.isInterface()) {
|
if(!clz.isInterface()) {
|
||||||
|
@ -86,7 +86,7 @@ public class Discovery<E extends Element> {
|
||||||
for(Class<?> interfaceClass : interfaces) {
|
for(Class<?> interfaceClass : interfaces) {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Class<E> parent = (Class<E>) interfaceClass;
|
Class<E> parent = (Class<E>) interfaceClass;
|
||||||
analizeISM(parent);
|
analizeElement(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(root == PropertyElement.class) {
|
if(root == PropertyElement.class) {
|
||||||
|
@ -104,14 +104,14 @@ public class Discovery<E extends Element> {
|
||||||
if(root.isAssignableFrom(tClass)) {
|
if(root.isAssignableFrom(tClass)) {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Class<E> type = (Class<E>) tClass;
|
Class<E> type = (Class<E>) tClass;
|
||||||
analizeISM(type);
|
analizeElement(type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if(root.isAssignableFrom(m.getReturnType())) {
|
} else if(root.isAssignableFrom(m.getReturnType())) {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Class<E> type = (Class<E>) m.getReturnType();
|
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) {
|
for(Class<?> clz : classes) {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Class<E> ism = (Class<E>) clz;
|
Class<E> ism = (Class<E>) clz;
|
||||||
analizeISM(ism);
|
analizeElement(ism);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class ISMDiscoveryTest {
|
||||||
@Test
|
@Test
|
||||||
public void testISMDIscovery() {
|
public void testISMDIscovery() {
|
||||||
Discovery<PropertyElement> propertyDiscovery = new Discovery<>(PropertyElement.class);
|
Discovery<PropertyElement> propertyDiscovery = new Discovery<>(PropertyElement.class);
|
||||||
propertyDiscovery.analizeISM(PropertyType.class);
|
propertyDiscovery.analizeElement(PropertyType.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue