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:
Oliver Gierke
2017-03-03 11:33:20 +01:00
parent 544f785c55
commit 6367af2f84

View File

@@ -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));
}