Browse Source

Polishing

pull/29796/head
Sam Brannen 2 years ago
parent
commit
ce1f6cf0bf
  1. 8
      spring-web/src/main/java/org/springframework/http/DefaultHttpStatusCode.java

8
spring-web/src/main/java/org/springframework/http/DefaultHttpStatusCode.java

@ -90,16 +90,12 @@ final class DefaultHttpStatusCode @@ -90,16 +90,12 @@ final class DefaultHttpStatusCode
@Override
public boolean equals(Object obj) {
if (obj instanceof HttpStatusCode other) {
return this.value == other.value();
}
else {
return false;
}
return (obj instanceof HttpStatusCode other && this.value == other.value());
}
@Override
public String toString() {
return Integer.toString(this.value);
}
}

Loading…
Cancel
Save