fixed error

This commit is contained in:
Luca Frosini 2023-02-03 19:13:47 +01:00
parent a7d98b821d
commit a346762e59
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}