|
|
@ -288,8 +288,8 @@ public class ApplicationListenerMethodAdapter implements GenericApplicationListe |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private ResolvableType resolveDeclaredEventType() { |
|
|
|
private ResolvableType resolveDeclaredEventType() { |
|
|
|
Parameter[] parameters = this.method.getParameters(); |
|
|
|
int count = this.method.getParameterTypes().length; |
|
|
|
if (parameters.length != 1) { |
|
|
|
if (count != 1) { |
|
|
|
throw new IllegalStateException("Only one parameter is allowed " + |
|
|
|
throw new IllegalStateException("Only one parameter is allowed " + |
|
|
|
"for event listener method: " + method); |
|
|
|
"for event listener method: " + method); |
|
|
|
} |
|
|
|
} |
|
|
|