Reuse Objects#hasCode()

This commit is contained in:
Gary Gregory 2022-11-04 16:24:29 -04:00
parent 8d6e743748
commit 731a679406

View File

@ -105,7 +105,7 @@ public boolean equals(final Object obj) {
*/
@Override
public int hashCode() {
return value == null ? 0 : value.hashCode();
return Objects.hashCode(value);
}
/**