mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-27 04:19:03 +00:00
Polish "Optimize AutoConfigurationImportSelector.filter()"
See gh-20928
This commit is contained in:
+3
-3
@@ -254,9 +254,9 @@ public class AutoConfigurationImportSelector implements DeferredImportSelector,
|
||||
return configurations;
|
||||
}
|
||||
List<String> result = new ArrayList<>(candidates.length);
|
||||
for (int i = 0; i < candidates.length; i++) {
|
||||
if (candidates[i] != null) {
|
||||
result.add(candidates[i]);
|
||||
for (String candidate : candidates) {
|
||||
if (candidate != null) {
|
||||
result.add(candidate);
|
||||
}
|
||||
}
|
||||
if (logger.isTraceEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user