Skip to content

Commit

Permalink
Implement hashCode for PropertyDetails
Browse files Browse the repository at this point in the history
Implement hashCode for PropertyDetails since it already overrides equals.

See: https://errorprone.info/bugpattern/EqualsHashCode
  • Loading branch information
kilink committed Sep 23, 2024
1 parent e9bbde9 commit bbd09f3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public Object getValue() {
return value;
}

@Override
public int hashCode() {
return Objects.hash(key, id, value);
}

public boolean equals(Object o) {
if (!(o instanceof PropertyDetails)) {
return false;
Expand Down

0 comments on commit bbd09f3

Please sign in to comment.