Add fast path for ClassUtils.hasMethod()

This commit is contained in:
stsypanov
2019-12-30 17:20:07 +02:00
committed by Juergen Hoeller
parent c562c3a0b3
commit 8e5cad2af3
5 changed files with 33 additions and 12 deletions

View File

@@ -365,7 +365,7 @@ class CglibAopProxy implements AopProxy, Serializable {
*/
private static boolean implementsInterface(Method method, Set<Class<?>> ifcs) {
for (Class<?> ifc : ifcs) {
if (ClassUtils.hasMethod(ifc, method.getName(), method.getParameterTypes())) {
if (ClassUtils.hasMethod(ifc, method)) {
return true;
}
}