Avoid Java8 API

This commit is contained in:
Stephane Nicoll 2015-07-08 14:58:52 +02:00
parent bf786c3176
commit e3bb06c878
1 changed files with 1 additions and 1 deletions

View File

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