From 31ede5565bf19df016b945849d19d18304bfc6e4 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 22 Dec 2020 16:07:02 -0500 Subject: [PATCH] Use final. --- src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 68c2541c2..7b1a476af 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java @@ -755,7 +755,7 @@ public class MethodUtils { .filter(method -> method.getName().equals(methodName)) .forEach(methods::add); - for (Method method : methods) { + for (final Method method : methods) { if (Arrays.deepEquals(method.getParameterTypes(), parameterTypes)) { return method; }