Browse Source

Merge branch '3.5.x'

pull/46404/head
Phillip Webb 8 months ago
parent
commit
1124497ffa
  1. 10
      loader/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/JarFileUrlKey.java

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

@ -44,11 +44,6 @@ final class JarFileUrlKey { @@ -44,11 +44,6 @@ final class JarFileUrlKey {
this.runtimeRef = "runtime".equals(url.getRef());
}
@Override
public int hashCode() {
return Objects.hashCode(this.file);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
@ -64,6 +59,11 @@ final class JarFileUrlKey { @@ -64,6 +59,11 @@ final class JarFileUrlKey {
&& (this.runtimeRef == other.runtimeRef);
}
@Override
public int hashCode() {
return Objects.hashCode(this.file);
}
private boolean equalsIgnoringCase(String s1, String s2) {
return (s1 == s2) || (s1 != null && s1.equalsIgnoreCase(s2));
}

Loading…
Cancel
Save