From 0a9033b034ffe3874038eb305db142b6cc3e0d03 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 25 Apr 2024 08:29:43 -0400 Subject: [PATCH] No need to qualify method in the same class - PMD version: 7.0.0 --- .../java/org/apache/commons/lang3/reflect/MethodUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java index 86215b468..a86cb616a 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java @@ -293,8 +293,8 @@ public class MethodUtils { final Class mcls = method.getDeclaringClass(); final List> classes = getAllSuperclassesAndInterfaces(mcls); for (final Class acls : classes) { - final Method equivalentMethod = ignoreAccess ? MethodUtils.getMatchingMethod(acls, method.getName(), method.getParameterTypes()) - : MethodUtils.getMatchingAccessibleMethod(acls, method.getName(), method.getParameterTypes()); + final Method equivalentMethod = ignoreAccess ? getMatchingMethod(acls, method.getName(), method.getParameterTypes()) + : getMatchingAccessibleMethod(acls, method.getName(), method.getParameterTypes()); if (equivalentMethod != null) { annotation = equivalentMethod.getAnnotation(annotationCls); if (annotation != null) {