From adacce00cd2d31f66bb1f6b1c1eb5f93e7b0ec37 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 18 Nov 2021 15:47:19 -0500 Subject: [PATCH] Drop useless parens. --- .../java/org/apache/commons/lang3/reflect/MethodUtils.java | 3 +-- 1 file changed, 1 insertion(+), 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 31cec0439..4992ee42f 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java @@ -926,8 +926,7 @@ public class MethodUtils { Validate.notNull(cls, "cls"); Validate.notNull(annotationCls, "annotationCls"); - final List> classes = (searchSupers ? getAllSuperclassesAndInterfaces(cls) - : new ArrayList<>()); + final List> classes = searchSupers ? getAllSuperclassesAndInterfaces(cls) : new ArrayList<>(); classes.add(0, cls); final List annotatedMethods = new ArrayList<>(); for (final Class acls : classes) {