Drop useless parens.

This commit is contained in:
Gary Gregory 2021-11-18 15:47:19 -05:00
parent d5c7094bdd
commit adacce00cd
1 changed files with 1 additions and 2 deletions

View File

@ -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) {