Skip to content

Commit

Permalink
Merge pull request #260 from Ladicek/fix-typevariable-hash-code
Browse files Browse the repository at this point in the history
Fix the implementation of `TypeVariable.hashCode()`
  • Loading branch information
Ladicek committed Sep 15, 2022
2 parents 77c935f + 65a3e25 commit a174a3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/org/jboss/jandex/TypeVariable.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ public int hashCode() {
hash = super.hashCode();
hash = 31 * hash + name.hashCode();
hash = 31 * hash + Arrays.hashCode(bounds);
return this.hash |= (hash & HASH_MASK);
hash &= HASH_MASK;
this.hash |= hash;
return hash;
}
}

0 comments on commit a174a3f

Please sign in to comment.