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
a37b8ede
Commit
a37b8ede
authored
Aug 12, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17834 from succezlijunyi
* pr/17834: Simplify some code Closes gh-17834
parents
dec15864
d8baefc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
RequestPredicateFactory.java
...uate/endpoint/web/annotation/RequestPredicateFactory.java
+1
-2
ShutdownEndpointTests.java
...framework/boot/actuate/context/ShutdownEndpointTests.java
+1
-2
DiscoveredJmxOperationTests.java
.../endpoint/jmx/annotation/DiscoveredJmxOperationTests.java
+1
-3
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/annotation/RequestPredicateFactory.java
View file @
a37b8ede
...
...
@@ -65,8 +65,7 @@ class RequestPredicateFactory {
private
Parameter
getAllRemainingPathSegmentsParameter
(
Parameter
[]
selectorParameters
)
{
Parameter
trailingPathsParameter
=
null
;
for
(
int
i
=
0
;
i
<
selectorParameters
.
length
;
i
++)
{
Parameter
selectorParameter
=
selectorParameters
[
i
];
for
(
Parameter
selectorParameter
:
selectorParameters
)
{
Selector
selector
=
selectorParameter
.
getAnnotation
(
Selector
.
class
);
if
(
selector
.
match
()
==
Match
.
ALL_REMAINING
)
{
Assert
.
state
(
trailingPathsParameter
==
null
,
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/context/ShutdownEndpointTests.java
View file @
a37b8ede
...
...
@@ -97,8 +97,7 @@ class ShutdownEndpointTests {
@Bean
ShutdownEndpoint
endpoint
()
{
ShutdownEndpoint
endpoint
=
new
ShutdownEndpoint
();
return
endpoint
;
return
new
ShutdownEndpoint
();
}
@Bean
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/jmx/annotation/DiscoveredJmxOperationTests.java
View file @
a37b8ede
...
...
@@ -124,9 +124,7 @@ class DiscoveredJmxOperationTests {
annotationAttributes
.
put
(
"produces"
,
"application/xml"
);
DiscoveredOperationMethod
operationMethod
=
new
DiscoveredOperationMethod
(
method
,
OperationType
.
READ
,
annotationAttributes
);
DiscoveredJmxOperation
operation
=
new
DiscoveredJmxOperation
(
EndpointId
.
of
(
"test"
),
operationMethod
,
mock
(
OperationInvoker
.
class
));
return
operation
;
return
new
DiscoveredJmxOperation
(
EndpointId
.
of
(
"test"
),
operationMethod
,
mock
(
OperationInvoker
.
class
));
}
private
Method
findMethod
(
String
methodName
)
{
...
...
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