Reuse Objects#hasCode()
This commit is contained in:
parent
8d6e743748
commit
731a679406
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue