mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 03:24:58 +00:00
Reuse Objects#hasCode()
This commit is contained in:
parent
8d6e743748
commit
731a679406
@ -105,7 +105,7 @@ public boolean equals(final Object obj) {
|
||||
*/
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return value == null ? 0 : value.hashCode();
|
||||
return Objects.hashCode(value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user