Browse Source

Fix checkstyle violation

See gh-46401
pull/46604/head
Phillip Webb 5 months ago
parent
commit
ea8af9af56
  1. 10
      spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/JarFileUrlKey.java

10
spring-boot-project/spring-boot-tools/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