Commit 886ee9c8 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish

parent 68cc373d
...@@ -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 parameter
*/ */
OperationParameter get(int index); OperationParameter get(int index);
/** /**
* Return a stream of the contained paramteres. * Return a stream of the contained parameters.
* @return a stream of the parameters * @return a stream of the parameters
*/ */
Stream<OperationParameter> stream(); Stream<OperationParameter> stream();
......
...@@ -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[] parameterNames = parameterNameDiscoverer.getParameterNames(method);
Parameter[] parameters = method.getParameters(); Parameter[] parameters = method.getParameters();
Assert.state(paramterNames != null, Assert.state(parameterNames != null,
"Failed to extract parameter names for " + method); "Failed to extract parameter names for " + method);
this.operationParameters = getOperationParameters(parameters, paramterNames); this.operationParameters = getOperationParameters(parameters, parameterNames);
} }
private List<OperationParameter> getOperationParameters(Parameter[] parameters, private List<OperationParameter> getOperationParameters(Parameter[] parameters,
......
...@@ -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 = getImpact(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 getImpact(OperationType operationType) {
if (operationType == OperationType.READ) { if (operationType == OperationType.READ) {
return MBeanOperationInfo.INFO; return MBeanOperationInfo.INFO;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment