Browse Source

Use ArrayList instead of LinkedList

pull/2023/head
stsypanov 6 years ago committed by Juergen Hoeller
parent
commit
02d3cfa42d
  1. 2
      spring-core/src/main/java/org/springframework/util/ReflectionUtils.java

2
spring-core/src/main/java/org/springframework/util/ReflectionUtils.java

@ -697,7 +697,7 @@ public abstract class ReflectionUtils { @@ -697,7 +697,7 @@ public abstract class ReflectionUtils {
for (Method ifcMethod : ifc.getMethods()) {
if (!Modifier.isAbstract(ifcMethod.getModifiers())) {
if (result == null) {
result = new LinkedList<>();
result = new ArrayList<>();
}
result.add(ifcMethod);
}

Loading…
Cancel
Save