Polish
This commit is contained in:
parent
68cc373daa
commit
886ee9c870
|
|
@ -43,12 +43,12 @@ public interface OperationParameters extends Iterable<OperationParameter> {
|
|||
/**
|
||||
* Return the parameter at the specified index.
|
||||
* @param index the parameter index
|
||||
* @return the paramter
|
||||
* @return the parameter
|
||||
*/
|
||||
OperationParameter get(int index);
|
||||
|
||||
/**
|
||||
* Return a stream of the contained paramteres.
|
||||
* Return a stream of the contained parameters.
|
||||
* @return a stream of the parameters
|
||||
*/
|
||||
Stream<OperationParameter> stream();
|
||||
|
|
|
|||
|
|
@ -48,11 +48,11 @@ class OperationMethodParameters implements OperationParameters {
|
|||
Assert.notNull(method, "Method must not be null");
|
||||
Assert.notNull(parameterNameDiscoverer,
|
||||
"ParameterNameDiscoverer must not be null");
|
||||
String[] paramterNames = parameterNameDiscoverer.getParameterNames(method);
|
||||
String[] parameterNames = parameterNameDiscoverer.getParameterNames(method);
|
||||
Parameter[] parameters = method.getParameters();
|
||||
Assert.state(paramterNames != null,
|
||||
Assert.state(parameterNames != null,
|
||||
"Failed to extract parameter names for " + method);
|
||||
this.operationParameters = getOperationParameters(parameters, paramterNames);
|
||||
this.operationParameters = getOperationParameters(parameters, parameterNames);
|
||||
}
|
||||
|
||||
private List<OperationParameter> getOperationParameters(Parameter[] parameters,
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class MBeanInfoFactory {
|
|||
String description = operation.getDescription();
|
||||
MBeanParameterInfo[] signature = getSignature(operation.getParameters());
|
||||
String type = getType(operation.getOutputType());
|
||||
int impact = getImact(operation.getType());
|
||||
int impact = getImpact(operation.getType());
|
||||
return new ModelMBeanOperationInfo(name, description, signature, type, impact);
|
||||
}
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ class MBeanInfoFactory {
|
|||
parameter.getDescription());
|
||||
}
|
||||
|
||||
private int getImact(OperationType operationType) {
|
||||
private int getImpact(OperationType operationType) {
|
||||
if (operationType == OperationType.READ) {
|
||||
return MBeanOperationInfo.INFO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue