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 <[email protected]>
  • 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.
Original file line number Diff line number Diff line change
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.