From d5ff609743337d6241537018a10d45078553771d Mon Sep 17 00:00:00 2001 From: Arturo Bernal Date: Wed, 4 May 2022 16:51:41 +0200 Subject: [PATCH] * Inline var (#769) * Simplify conditions * Make final variable --- 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 a054490d9..dd68d28bc 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java @@ -1008,7 +1008,7 @@ public class MethodUtils { final Class acls; if (interfaceIndex >= allInterfaces.size()) { acls = allSuperclasses.get(superClassIndex++); - } else if ((superClassIndex >= allSuperclasses.size()) || (interfaceIndex < superClassIndex) || !(superClassIndex < interfaceIndex)) { + } else if ((superClassIndex >= allSuperclasses.size()) || !(superClassIndex < interfaceIndex)) { acls = allInterfaces.get(interfaceIndex++); } else { acls = allSuperclasses.get(superClassIndex++);