Skip to content

Commit

Permalink
Don't check for ConfigurationOptions equality during ConfigurationNod…
Browse files Browse the repository at this point in the history
…e equality check (#115)
  • Loading branch information
FerusGrim authored and lucko committed Jul 10, 2018
1 parent a22db70 commit 4dba3f9
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -595,17 +595,12 @@ public boolean equals(Object o) {
if (!(o instanceof SimpleConfigurationNode)) return false;
SimpleConfigurationNode that = (SimpleConfigurationNode) o;

return Objects.equals(this.key, that.key) &&
this.options.equals(that.options) &&
this.value.equals(that.value);
return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value);
}

@Override
public int hashCode() {
int result = options.hashCode();
result = 31 * result + Objects.hashCode(key);
result = 31 * result + value.hashCode();
return result;
return Objects.hashCode(key) ^ Objects.hashCode(value);
}

@Override
Expand Down

0 comments on commit 4dba3f9

Please sign in to comment.