--- a/src/main/java/de/uapcore/lightpit/ModuleManager.java Sat May 09 14:58:41 2020 +0200 +++ b/src/main/java/de/uapcore/lightpit/ModuleManager.java Sat May 09 15:19:21 2020 +0200 @@ -84,7 +84,7 @@ private Optional<LightPITModule> getModuleInfo(Registration reg) { try { - final Class scclass = Class.forName(reg.getClassName()); + final Class<?> scclass = Class.forName(reg.getClassName()); final boolean lpservlet = AbstractLightPITServlet.class.isAssignableFrom(scclass); final boolean lpmodule = scclass.isAnnotationPresent(LightPITModule.class); @@ -103,8 +103,7 @@ } if (lpservlet && lpmodule) { - final Class<? extends AbstractLightPITServlet> clazz = scclass; - final LightPITModule moduleInfo = clazz.getAnnotation(LightPITModule.class); + final LightPITModule moduleInfo = scclass.getAnnotation(LightPITModule.class); return Optional.of(moduleInfo); } else { return Optional.empty();