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
The following commit(s) were added to refs/heads/master by this push:
new 01175ec Use final.
01175ec is described below
commit 01175ec91173a4741c721bc6a9e7e298750ff29f
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Feb 22 08:53:33 2020 -0500
Use final.
---
src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java | 2 +-
.../java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java | 2 +-
2 files 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 f724c5c..be48fb9 100644
--- a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
+++ b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java
@@ -974,7 +974,7 @@ public class MethodUtils {
final Class<?> mcls = method.getDeclaringClass();
final List<Class<?>> classes =
getAllSuperclassesAndInterfaces(mcls);
for (final Class<?> acls : classes) {
- Method equivalentMethod = (ignoreAccess ?
MethodUtils.getMatchingMethod(acls, method.getName(),
method.getParameterTypes())
+ final Method equivalentMethod = (ignoreAccess ?
MethodUtils.getMatchingMethod(acls, method.getName(),
method.getParameterTypes())
: MethodUtils.getMatchingAccessibleMethod(acls,
method.getName(), method.getParameterTypes()));
if (equivalentMethod != null) {
annotation = equivalentMethod.getAnnotation(annotationCls);
diff --git
a/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
b/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
index 68354a4..32e276f 100644
--- a/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
@@ -714,7 +714,7 @@ public class ExceptionUtilsTest {
public void testgetStackFramesHappyPath() {
final String[] actual = ExceptionUtils.getStackFrames(new Throwable() {
// provide static stack trace to make test stable
- public void printStackTrace(PrintWriter s) {
+ public void printStackTrace(final PrintWriter s) {
s.write("org.apache.commons.lang3.exception.ExceptionUtilsTest$1\n" +
"\tat
org.apache.commons.lang3.exception.ExceptionUtilsTest.testgetStackFramesGappyPath(ExceptionUtilsTest.java:706)\n"
+
"\tat
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)\n" +