Skip to content

Commit b3c7348

Browse files
committed
Merge pull request #20525 from dreis2211
* gh-20525: Fix method order checkstyle issue Closes gh-20525
2 parents 0315724 + 3e24df3 commit b3c7348

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)