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
e1611287
Commit
e1611287
authored
Aug 31, 2019
by
freekry
Committed by
Stephane Nicoll
Sep 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify some code
See gh-18077
parent
58734873
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
IncludeExcludeGroupMemberPredicate.java
...oconfigure/health/IncludeExcludeGroupMemberPredicate.java
+1
-4
SpringBootMockMvcBuilderCustomizerTests.java
.../web/servlet/SpringBootMockMvcBuilderCustomizerTests.java
+1
-4
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/IncludeExcludeGroupMemberPredicate.java
View file @
e1611287
...
@@ -54,10 +54,7 @@ class IncludeExcludeGroupMemberPredicate implements Predicate<String> {
...
@@ -54,10 +54,7 @@ class IncludeExcludeGroupMemberPredicate implements Predicate<String> {
if
(
names
==
null
)
{
if
(
names
==
null
)
{
return
Collections
.
emptySet
();
return
Collections
.
emptySet
();
}
}
Set
<
String
>
cleaned
=
new
LinkedHashSet
<>(
names
.
size
());
Set
<
String
>
cleaned
=
new
LinkedHashSet
<>(
names
);
for
(
String
name
:
names
)
{
cleaned
.
add
(
name
);
}
return
Collections
.
unmodifiableSet
(
cleaned
);
return
Collections
.
unmodifiableSet
(
cleaned
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/SpringBootMockMvcBuilderCustomizerTests.java
View file @
e1611287
...
@@ -109,10 +109,7 @@ class SpringBootMockMvcBuilderCustomizerTests {
...
@@ -109,10 +109,7 @@ class SpringBootMockMvcBuilderCustomizerTests {
@Override
@Override
public
void
write
(
List
<
String
>
lines
)
{
public
void
write
(
List
<
String
>
lines
)
{
List
<
String
>
written
=
new
ArrayList
<>();
List
<
String
>
written
=
new
ArrayList
<>(
lines
);
for
(
String
line
:
lines
)
{
written
.
add
(
line
);
}
synchronized
(
this
.
monitor
)
{
synchronized
(
this
.
monitor
)
{
this
.
allWritten
.
add
(
written
);
this
.
allWritten
.
add
(
written
);
}
}
...
...
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