Skip to content

Commit

Permalink
fixed hashCode in LayeredRefinedAttributeDefinitionImpl breaking the …
Browse files Browse the repository at this point in the history
…equals contract
  • Loading branch information
arnost-starosta committed Dec 22, 2017
1 parent fdb6b57 commit b582853
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -161,7 +161,7 @@ public boolean canModify() {
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
int result = 17;
result = prime * result + ((layer == null) ? 0 : layer.hashCode());
result = prime * result + ((refinedAttributeDefinition == null) ? 0 : refinedAttributeDefinition.hashCode());
return result;
Expand Down

0 comments on commit b582853

Please sign in to comment.