Polishing

This commit is contained in:
Sam Brannen
2023-01-09 18:25:22 +01:00
parent c702cd418e
commit ce1f6cf0bf

View File

@@ -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);
}
}