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 6c14b377e5d291480c8c6b7bbddce4938b6fa63c Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Sep 12 10:15:08 2024 -0400 Use final --- src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java index a458fcd1a..3a912fa18 100644 --- a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java +++ b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java @@ -248,7 +248,7 @@ public class ExceptionUtils { // TODO: Remove in Lang 4 private static Throwable getCauseUsingMethodName(final Throwable throwable, final String methodName) { if (methodName != null) { - Method method = MethodUtils.getMethodObject(throwable.getClass(), methodName); + final Method method = MethodUtils.getMethodObject(throwable.getClass(), methodName); if (method != null && Throwable.class.isAssignableFrom(method.getReturnType())) { try { return (Throwable) method.invoke(throwable);