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
886ee9c8
Commit
886ee9c8
authored
Jan 20, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
68cc373d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
OperationParameters.java
...ork/boot/actuate/endpoint/invoke/OperationParameters.java
+2
-2
OperationMethodParameters.java
...te/endpoint/invoke/reflect/OperationMethodParameters.java
+3
-3
MBeanInfoFactory.java
...framework/boot/actuate/endpoint/jmx/MBeanInfoFactory.java
+2
-2
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/OperationParameters.java
View file @
886ee9c8
...
@@ -43,12 +43,12 @@ public interface OperationParameters extends Iterable<OperationParameter> {
...
@@ -43,12 +43,12 @@ public interface OperationParameters extends Iterable<OperationParameter> {
/**
/**
* Return the parameter at the specified index.
* Return the parameter at the specified index.
* @param index the parameter index
* @param index the parameter index
* @return the paramter
* @return the param
e
ter
*/
*/
OperationParameter
get
(
int
index
);
OperationParameter
get
(
int
index
);
/**
/**
* Return a stream of the contained param
tere
s.
* Return a stream of the contained param
eter
s.
* @return a stream of the parameters
* @return a stream of the parameters
*/
*/
Stream
<
OperationParameter
>
stream
();
Stream
<
OperationParameter
>
stream
();
...
...
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameters.java
View file @
886ee9c8
...
@@ -48,11 +48,11 @@ class OperationMethodParameters implements OperationParameters {
...
@@ -48,11 +48,11 @@ class OperationMethodParameters implements OperationParameters {
Assert
.
notNull
(
method
,
"Method must not be null"
);
Assert
.
notNull
(
method
,
"Method must not be null"
);
Assert
.
notNull
(
parameterNameDiscoverer
,
Assert
.
notNull
(
parameterNameDiscoverer
,
"ParameterNameDiscoverer must not be null"
);
"ParameterNameDiscoverer must not be null"
);
String
[]
paramterNames
=
parameterNameDiscoverer
.
getParameterNames
(
method
);
String
[]
param
e
terNames
=
parameterNameDiscoverer
.
getParameterNames
(
method
);
Parameter
[]
parameters
=
method
.
getParameters
();
Parameter
[]
parameters
=
method
.
getParameters
();
Assert
.
state
(
paramterNames
!=
null
,
Assert
.
state
(
param
e
terNames
!=
null
,
"Failed to extract parameter names for "
+
method
);
"Failed to extract parameter names for "
+
method
);
this
.
operationParameters
=
getOperationParameters
(
parameters
,
paramterNames
);
this
.
operationParameters
=
getOperationParameters
(
parameters
,
param
e
terNames
);
}
}
private
List
<
OperationParameter
>
getOperationParameters
(
Parameter
[]
parameters
,
private
List
<
OperationParameter
>
getOperationParameters
(
Parameter
[]
parameters
,
...
...
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/jmx/MBeanInfoFactory.java
View file @
886ee9c8
...
@@ -71,7 +71,7 @@ class MBeanInfoFactory {
...
@@ -71,7 +71,7 @@ class MBeanInfoFactory {
String
description
=
operation
.
getDescription
();
String
description
=
operation
.
getDescription
();
MBeanParameterInfo
[]
signature
=
getSignature
(
operation
.
getParameters
());
MBeanParameterInfo
[]
signature
=
getSignature
(
operation
.
getParameters
());
String
type
=
getType
(
operation
.
getOutputType
());
String
type
=
getType
(
operation
.
getOutputType
());
int
impact
=
getImact
(
operation
.
getType
());
int
impact
=
getIm
p
act
(
operation
.
getType
());
return
new
ModelMBeanOperationInfo
(
name
,
description
,
signature
,
type
,
impact
);
return
new
ModelMBeanOperationInfo
(
name
,
description
,
signature
,
type
,
impact
);
}
}
...
@@ -85,7 +85,7 @@ class MBeanInfoFactory {
...
@@ -85,7 +85,7 @@ class MBeanInfoFactory {
parameter
.
getDescription
());
parameter
.
getDescription
());
}
}
private
int
getImact
(
OperationType
operationType
)
{
private
int
getIm
p
act
(
OperationType
operationType
)
{
if
(
operationType
==
OperationType
.
READ
)
{
if
(
operationType
==
OperationType
.
READ
)
{
return
MBeanOperationInfo
.
INFO
;
return
MBeanOperationInfo
.
INFO
;
}
}
...
...
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