Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
dfb3cd51
Commit
dfb3cd51
authored
Dec 24, 2018
by
igor-suhorukov
Committed by
Stephane Nicoll
Dec 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify code by using for-each loop
See gh-15563
parent
cc5624ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
SessionAutoConfiguration.java
.../boot/autoconfigure/session/SessionAutoConfiguration.java
+2
-2
JSONArray.java
...framework/boot/configurationprocessor/json/JSONArray.java
+2
-2
Repackager.java
...ava/org/springframework/boot/loader/tools/Repackager.java
+2
-2
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/SessionAutoConfiguration.java
View file @
dfb3cd51
...
...
@@ -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
,
type
s
[
i
]
));
type
));
}
return
StringUtils
.
toStringArray
(
imports
);
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONArray.java
View file @
dfb3cd51
...
...
@@ -65,8 +65,8 @@ public class JSONArray {
public
JSONArray
(
Collection
copyFrom
)
{
this
();
if
(
copyFrom
!=
null
)
{
for
(
Iterator
it
=
copyFrom
.
iterator
();
it
.
hasNext
();
)
{
put
(
JSONObject
.
wrap
(
it
.
next
()
));
for
(
Object
value
:
copyFrom
)
{
put
(
JSONObject
.
wrap
(
value
));
}
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java
View file @
dfb3cd51
...
...
@@ -270,8 +270,8 @@ public class Repackager {
}
private
boolean
isZip
(
InputStream
inputStream
)
throws
IOException
{
for
(
int
i
=
0
;
i
<
ZIP_FILE_HEADER
.
length
;
i
++
)
{
if
(
inputStream
.
read
()
!=
ZIP_FILE_HEADER
[
i
]
)
{
for
(
byte
magicByte
:
ZIP_FILE_HEADER
)
{
if
(
inputStream
.
read
()
!=
magicByte
)
{
return
false
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment