parent
cc5624efc4
commit
dfb3cd51bc
|
@ -164,9 +164,9 @@ public class SessionAutoConfiguration {
|
||||||
protected final String[] selectImports(WebApplicationType webApplicationType) {
|
protected final String[] selectImports(WebApplicationType webApplicationType) {
|
||||||
List<String> imports = new ArrayList<>();
|
List<String> imports = new ArrayList<>();
|
||||||
StoreType[] types = StoreType.values();
|
StoreType[] types = StoreType.values();
|
||||||
for (int i = 0; i < types.length; i++) {
|
for (StoreType type : types) {
|
||||||
imports.add(SessionStoreMappings.getConfigurationClass(webApplicationType,
|
imports.add(SessionStoreMappings.getConfigurationClass(webApplicationType,
|
||||||
types[i]));
|
type));
|
||||||
}
|
}
|
||||||
return StringUtils.toStringArray(imports);
|
return StringUtils.toStringArray(imports);
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,8 +65,8 @@ public class JSONArray {
|
||||||
public JSONArray(Collection copyFrom) {
|
public JSONArray(Collection copyFrom) {
|
||||||
this();
|
this();
|
||||||
if (copyFrom != null) {
|
if (copyFrom != null) {
|
||||||
for (Iterator it = copyFrom.iterator(); it.hasNext();) {
|
for (Object value : copyFrom) {
|
||||||
put(JSONObject.wrap(it.next()));
|
put(JSONObject.wrap(value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -270,8 +270,8 @@ public class Repackager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isZip(InputStream inputStream) throws IOException {
|
private boolean isZip(InputStream inputStream) throws IOException {
|
||||||
for (int i = 0; i < ZIP_FILE_HEADER.length; i++) {
|
for (byte magicByte : ZIP_FILE_HEADER) {
|
||||||
if (inputStream.read() != ZIP_FILE_HEADER[i]) {
|
if (inputStream.read() != magicByte) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue