Skip to content

Commit fc516cb

Browse files
committed
Merge branch '6.2.x'
2 parents e7402bc + 8c376e9 commit fc516cb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: spring-core/src/main/java/org/springframework/core/annotation/AnnotationsScanner.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,12 @@ private static boolean isOverride(Method rootMethod, Method candidateMethod) {
356356
}
357357

358358
private static boolean hasSameParameterTypes(Method rootMethod, Method candidateMethod) {
359-
if (candidateMethod.getParameterCount() != rootMethod.getParameterCount()) {
360-
return false;
361-
}
362359
Class<?>[] rootParameterTypes = rootMethod.getParameterTypes();
363360
Class<?>[] candidateParameterTypes = candidateMethod.getParameterTypes();
364361
if (Arrays.equals(candidateParameterTypes, rootParameterTypes)) {
365362
return true;
366363
}
367-
return hasSameGenericTypeParameters(rootMethod, candidateMethod,
368-
rootParameterTypes);
364+
return hasSameGenericTypeParameters(rootMethod, candidateMethod, rootParameterTypes);
369365
}
370366

371367
private static boolean hasSameGenericTypeParameters(

0 commit comments

Comments
 (0)