From 02d3cfa42d1cae6d84dea559efa096a86fd2b611 Mon Sep 17 00:00:00 2001 From: stsypanov Date: Sat, 17 Nov 2018 21:38:02 +0200 Subject: [PATCH] Use ArrayList instead of LinkedList --- .../src/main/java/org/springframework/util/ReflectionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java b/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java index abd423c12f..c6c95ebc3f 100644 --- a/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java +++ b/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java @@ -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); }