Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git
This commit is contained in:
commit
c25de73d21
|
@ -207,8 +207,7 @@ public R getValue() {
|
|||
@Override
|
||||
public int hashCode() {
|
||||
// see Map.Entry API specification
|
||||
return (getKey() == null ? 0 : getKey().hashCode()) ^
|
||||
(getValue() == null ? 0 : getValue().hashCode());
|
||||
return Objects.hashCode(getKey()) ^ Objects.hashCode(getValue());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -171,9 +171,7 @@ public boolean equals(final Object obj) {
|
|||
*/
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return (getLeft() == null ? 0 : getLeft().hashCode()) ^
|
||||
(getMiddle() == null ? 0 : getMiddle().hashCode()) ^
|
||||
(getRight() == null ? 0 : getRight().hashCode());
|
||||
return Objects.hashCode(getLeft()) ^ Objects.hashCode(getMiddle()) ^ Objects.hashCode(getRight());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue