Simplify code by using for-each loop
See gh-15563
This commit is contained in:
committed by
Stephane Nicoll
parent
cc5624efc4
commit
dfb3cd51bc
@@ -164,9 +164,9 @@ public class SessionAutoConfiguration {
|
||||
protected final String[] selectImports(WebApplicationType webApplicationType) {
|
||||
List<String> imports = new ArrayList<>();
|
||||
StoreType[] types = StoreType.values();
|
||||
for (int i = 0; i < types.length; i++) {
|
||||
for (StoreType type : types) {
|
||||
imports.add(SessionStoreMappings.getConfigurationClass(webApplicationType,
|
||||
types[i]));
|
||||
type));
|
||||
}
|
||||
return StringUtils.toStringArray(imports);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user