mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix usage of Java8 API
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user