From e3bb06c8783ca45633ee361bb637cc3236471479 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 8 Jul 2015 14:58:52 +0200 Subject: [PATCH] Avoid Java8 API --- .../context/event/ApplicationListenerMethodAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-context/src/main/java/org/springframework/context/event/ApplicationListenerMethodAdapter.java b/spring-context/src/main/java/org/springframework/context/event/ApplicationListenerMethodAdapter.java index 491022c613..94d5c792fa 100644 --- a/spring-context/src/main/java/org/springframework/context/event/ApplicationListenerMethodAdapter.java +++ b/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())