Polishing
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user