Skip to content

Commit

Permalink
fix: override equals and hashcode for SecretLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
mstasgravitee committed Jun 14, 2024
1 parent 1d93714 commit 401301c
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,17 @@ public <T> T getOrDefault(String key, String defaultValue) {
Objects.requireNonNull(key);
return (T) properties.getOrDefault(key, defaultValue);
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SecretLocation that = (SecretLocation) o;
return Objects.equals(properties, that.properties);
}

@Override
public int hashCode() {
return Objects.hashCode(properties);
}
}

0 comments on commit 401301c

Please sign in to comment.