Use ArrayList instead of LinkedList

This commit is contained in:
stsypanov
2018-11-17 21:38:02 +02:00
committed by Juergen Hoeller
parent 12f168290d
commit 02d3cfa42d

View File

@@ -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);
}