Fix usage of Java8 API

This commit is contained in:
Stephane Nicoll 2015-02-10 09:47:34 +01:00
parent 4741a12fdc
commit 37c04bd9c8
1 changed files with 2 additions and 2 deletions

View File

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