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
afda71e4
Commit
afda71e4
authored
Aug 28, 2018
by
dreis2211
Committed by
Stephane Nicoll
Aug 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish some joining collectors
Closes gh-14221
parent
3997b3ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
DiscoveredWebOperation.java
...tuate/endpoint/web/annotation/DiscoveredWebOperation.java
+2
-2
RequestPredicateFactory.java
...uate/endpoint/web/annotation/RequestPredicateFactory.java
+2
-2
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/annotation/DiscoveredWebOperation.java
View file @
afda71e4
...
@@ -61,8 +61,8 @@ class DiscoveredWebOperation extends AbstractDiscoveredOperation implements WebO
...
@@ -61,8 +61,8 @@ class DiscoveredWebOperation extends AbstractDiscoveredOperation implements WebO
}
}
private
String
getId
(
String
endpointId
,
Method
method
)
{
private
String
getId
(
String
endpointId
,
Method
method
)
{
return
endpointId
+
Stream
.
of
(
method
.
getParameters
()).
filter
(
this
::
hasSelector
)
return
Stream
.
of
(
method
.
getParameters
()).
filter
(
this
::
hasSelector
)
.
map
(
this
::
dashName
).
collect
(
Collectors
.
joining
());
.
map
(
this
::
dashName
).
collect
(
Collectors
.
joining
(
""
,
endpointId
,
""
));
}
}
private
boolean
hasSelector
(
Parameter
parameter
)
{
private
boolean
hasSelector
(
Parameter
parameter
)
{
...
...
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/annotation/RequestPredicateFactory.java
View file @
afda71e4
...
@@ -62,8 +62,8 @@ class RequestPredicateFactory {
...
@@ -62,8 +62,8 @@ class RequestPredicateFactory {
}
}
private
String
getPath
(
String
rootPath
,
Method
method
)
{
private
String
getPath
(
String
rootPath
,
Method
method
)
{
return
rootPath
+
Stream
.
of
(
method
.
getParameters
()).
filter
(
this
::
hasSelector
)
return
Stream
.
of
(
method
.
getParameters
()).
filter
(
this
::
hasSelector
)
.
map
(
this
::
slashName
).
collect
(
Collectors
.
joining
());
.
map
(
this
::
slashName
).
collect
(
Collectors
.
joining
(
""
,
rootPath
,
""
));
}
}
private
boolean
hasSelector
(
Parameter
parameter
)
{
private
boolean
hasSelector
(
Parameter
parameter
)
{
...
...
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