You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/11/18 20:47:23 UTC

[commons-lang] branch master updated: Drop useless parens.

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 adacce0  Drop useless parens.
adacce0 is described below

commit adacce00cd2d31f66bb1f6b1c1eb5f93e7b0ec37
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Nov 18 15:47:19 2021 -0500

    Drop useless parens.
---
 src/main/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 31cec04..4992ee4 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<Class<?>> classes = (searchSupers ? getAllSuperclassesAndInterfaces(cls)
-                : new ArrayList<>());
+        final List<Class<?>> classes = searchSupers ? getAllSuperclassesAndInterfaces(cls) : new ArrayList<>();
         classes.add(0, cls);
         final List<Method> annotatedMethods = new ArrayList<>();
         for (final Class<?> acls : classes) {