diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoker/cache/CachingOperationInvoker.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoker/cache/CachingOperationInvoker.java index feedfd2e32..c63a714976 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoker/cache/CachingOperationInvoker.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoker/cache/CachingOperationInvoker.java @@ -177,15 +177,6 @@ public class CachingOperationInvoker implements OperationInvoker { this.apiVersion = apiVersion; } - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + this.apiVersion.hashCode(); - result = prime * result + ((this.principal == null) ? 0 : this.principal.hashCode()); - return result; - } - @Override public boolean equals(Object obj) { if (this == obj) { @@ -212,6 +203,15 @@ public class CachingOperationInvoker implements OperationInvoker { return true; } + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + this.apiVersion.hashCode(); + result = prime * result + ((this.principal == null) ? 0 : this.principal.hashCode()); + return result; + } + } }