Merge branch '6.2.x'
This commit is contained in:
commit
fc516cb39e
|
@ -356,16 +356,12 @@ abstract class AnnotationsScanner {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean hasSameParameterTypes(Method rootMethod, Method candidateMethod) {
|
private static boolean hasSameParameterTypes(Method rootMethod, Method candidateMethod) {
|
||||||
if (candidateMethod.getParameterCount() != rootMethod.getParameterCount()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Class<?>[] rootParameterTypes = rootMethod.getParameterTypes();
|
Class<?>[] rootParameterTypes = rootMethod.getParameterTypes();
|
||||||
Class<?>[] candidateParameterTypes = candidateMethod.getParameterTypes();
|
Class<?>[] candidateParameterTypes = candidateMethod.getParameterTypes();
|
||||||
if (Arrays.equals(candidateParameterTypes, rootParameterTypes)) {
|
if (Arrays.equals(candidateParameterTypes, rootParameterTypes)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return hasSameGenericTypeParameters(rootMethod, candidateMethod,
|
return hasSameGenericTypeParameters(rootMethod, candidateMethod, rootParameterTypes);
|
||||||
rootParameterTypes);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean hasSameGenericTypeParameters(
|
private static boolean hasSameGenericTypeParameters(
|
||||||
|
|
Loading…
Reference in New Issue