diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/OperationParameters.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/OperationParameters.java index 100b335dac1..42046d4378f 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/OperationParameters.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/OperationParameters.java @@ -43,12 +43,12 @@ public interface OperationParameters extends Iterable { /** * 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 stream(); diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameters.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameters.java index aa9fbc2f108..fa471032858 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameters.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoke/reflect/OperationMethodParameters.java @@ -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 getOperationParameters(Parameter[] parameters, diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/jmx/MBeanInfoFactory.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/jmx/MBeanInfoFactory.java index 2d874c52c60..4b9ca728097 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/jmx/MBeanInfoFactory.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/jmx/MBeanInfoFactory.java @@ -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; }