This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 0a9033b034ffe3874038eb305db142b6cc3e0d03 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Apr 25 08:29:43 2024 -0400 No need to qualify method in the same class - PMD version: 7.0.0 --- src/main/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<Class<?>> 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) {