Avoid Java8 API

master
Stephane Nicoll 9 years ago
parent bf786c3176
commit e3bb06c878
  1. 2
      spring-context/src/main/java/org/springframework/context/event/ApplicationListenerMethodAdapter.java

@ -131,7 +131,7 @@ public class ApplicationListenerMethodAdapter implements GenericApplicationListe
if (declaredEventType == null) {
return null;
}
if (this.method.getParameters().length == 0) {
if (this.method.getParameterTypes().length == 0) {
return new Object[0];
}
if (!ApplicationEvent.class.isAssignableFrom(declaredEventType.getRawClass())

Loading…
Cancel
Save