DATAREST-1014 - Avoid Java 8 API usage in AnnotatedEventHandlerInvoker.
Dropped the call to Method.getParameterCount() in favor of ….getParameterTypes().length as the former method was introduced in Java 8.
This commit is contained in:
@@ -166,7 +166,7 @@ public class AnnotatedEventHandlerInvoker implements ApplicationListener<Reposit
|
||||
return;
|
||||
}
|
||||
|
||||
if (method.getParameterCount() == 0) {
|
||||
if (method.getParameterTypes().length == 0) {
|
||||
throw new IllegalStateException(String.format(PARAMETER_MISSING, method));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user