This commit is contained in:
Stephane Nicoll 2018-01-20 12:00:07 +01:00
parent 68cc373daa
commit 886ee9c870
3 changed files with 7 additions and 7 deletions

View File

@ -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();

View File

@ -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,

View File

@ -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;
}