Polish "Optimize AutoConfigurationImportSelector.filter()"

See gh-20928
pull/20992/head
Stephane Nicoll 5 years ago
parent 2158fadb35
commit 71ecadeaee

@ -254,9 +254,9 @@ public class AutoConfigurationImportSelector implements DeferredImportSelector,
return configurations; return configurations;
} }
List<String> result = new ArrayList<>(candidates.length); List<String> result = new ArrayList<>(candidates.length);
for (int i = 0; i < candidates.length; i++) { for (String candidate : candidates) {
if (candidates[i] != null) { if (candidate != null) {
result.add(candidates[i]); result.add(candidate);
} }
} }
if (logger.isTraceEnabled()) { if (logger.isTraceEnabled()) {

Loading…
Cancel
Save