Reuse Objects#hasCode()

This commit is contained in:
Gary Gregory 2022-11-04 16:24:29 -04:00
parent 8d6e743748
commit 731a679406
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class MutableObject<T> implements Mutable<T>, Serializable {
*/
@Override
public int hashCode() {
return value == null ? 0 : value.hashCode();
return Objects.hashCode(value);
}
/**