fixed error
This commit is contained in:
parent
a7d98b821d
commit
a346762e59
|
@ -80,11 +80,12 @@ public class Discovery<E extends Element> {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void add(Class<E> clz) throws Exception {
|
||||
if(!discoveredElement.contains(clz)) {
|
||||
discoveredElement.add(clz);
|
||||
for(DiscoveredElementAction<E> discoveredElementAction : discoveredElementActions) {
|
||||
discoveredElementAction.analizeElement(clz);
|
||||
for(DiscoveredElementAction<Element> discoveredElementAction : discoveredElementActions) {
|
||||
discoveredElementAction.analizeElement((Class<Element>) clz);
|
||||
}
|
||||
logger.info("+ Added {}.", clz);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue