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 370d7fed1b
commit 7f8ff8c2a7

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