Skip to content

Commit 1124497

Browse files
committed
Merge branch '3.5.x'
2 parents 194fe4b + ba6ae52 commit 1124497

File tree

1 file changed

+5
-5
lines changed
  • loader/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar

1 file changed

+5
-5
lines changed

loader/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/JarFileUrlKey.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ final class JarFileUrlKey {
4444
this.runtimeRef = "runtime".equals(url.getRef());
4545
}
4646

47-
@Override
48-
public int hashCode() {
49-
return Objects.hashCode(this.file);
50-
}
51-
5247
@Override
5348
public boolean equals(Object obj) {
5449
if (this == obj) {
@@ -64,6 +59,11 @@ && equalsIgnoringCase(this.host, other.host) && (this.port == other.port)
6459
&& (this.runtimeRef == other.runtimeRef);
6560
}
6661

62+
@Override
63+
public int hashCode() {
64+
return Objects.hashCode(this.file);
65+
}
66+
6767
private boolean equalsIgnoringCase(String s1, String s2) {
6868
return (s1 == s2) || (s1 != null && s1.equalsIgnoreCase(s2));
6969
}

0 commit comments

Comments
 (0)