diff --git a/src/main/java/org/gcube/informationsystem/discovery/Discovery.java b/src/main/java/org/gcube/informationsystem/discovery/Discovery.java index 8c6c3c9..dd6f437 100644 --- a/src/main/java/org/gcube/informationsystem/discovery/Discovery.java +++ b/src/main/java/org/gcube/informationsystem/discovery/Discovery.java @@ -80,11 +80,12 @@ public class Discovery { } } + @SuppressWarnings("unchecked") protected void add(Class clz) throws Exception { if(!discoveredElement.contains(clz)) { discoveredElement.add(clz); - for(DiscoveredElementAction discoveredElementAction : discoveredElementActions) { - discoveredElementAction.analizeElement(clz); + for(DiscoveredElementAction discoveredElementAction : discoveredElementActions) { + discoveredElementAction.analizeElement((Class) clz); } logger.info("+ Added {}.", clz); }