Skip to content

Commit 3e24df3

Browse files
dreis2211wilkinsona
authored andcommitted
Fix method order checkstyle issue
See gh-20525
1 parent 0315724 commit 3e24df3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/invoker/cache/CachingOperationInvoker.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,6 @@ private CacheKey(ApiVersion apiVersion, Principal principal) {
177177
this.apiVersion = apiVersion;
178178
}
179179

180-
@Override
181-
public int hashCode() {
182-
final int prime = 31;
183-
int result = 1;
184-
result = prime * result + this.apiVersion.hashCode();
185-
result = prime * result + ((this.principal == null) ? 0 : this.principal.hashCode());
186-
return result;
187-
}
188-
189180
@Override
190181
public boolean equals(Object obj) {
191182
if (this == obj) {
@@ -212,6 +203,15 @@ else if (!this.principal.equals(other.principal)) {
212203
return true;
213204
}
214205

206+
@Override
207+
public int hashCode() {
208+
final int prime = 31;
209+
int result = 1;
210+
result = prime * result + this.apiVersion.hashCode();
211+
result = prime * result + ((this.principal == null) ? 0 : this.principal.hashCode());
212+
return result;
213+
}
214+
215215
}
216216

217217
}

0 commit comments

Comments
 (0)