Skip to content

Commit

Permalink
event bus - service inspector signature check fix
Browse files Browse the repository at this point in the history
Signed-off-by: riccardomodanese <riccardo.modanese@eurotech.com>
  • Loading branch information
riccardomodanese authored and Coduz committed Apr 7, 2020
1 parent dcb65fa commit 184ac03
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -75,7 +75,7 @@ public static <T extends KapuaService> List<ServiceEventClientConfiguration> get
KapuaRuntimeException.internalError(String.format("Invalid method signature: number of parameters %d, expected 1", paramsSize));
}
Class<?> paramClazz = enhancedMethod.getParameterTypes()[0];
if (enhancedMethod.getParameterTypes()[0].equals(ServiceEvent.class)) {
if (!enhancedMethod.getParameterTypes()[0].equals(ServiceEvent.class)) {
KapuaRuntimeException.internalError(String.format("Invalid method signature: type of parameters %s, expected ServiceEvent", paramClazz));
}
} catch (NoSuchMethodException | SecurityException e1) {
Expand Down

0 comments on commit 184ac03

Please sign in to comment.