diff --git a/core/src/main/java/org/jboss/jandex/TypeVariable.java b/core/src/main/java/org/jboss/jandex/TypeVariable.java index 0ce38f0b..969688f4 100644 --- a/core/src/main/java/org/jboss/jandex/TypeVariable.java +++ b/core/src/main/java/org/jboss/jandex/TypeVariable.java @@ -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; } }