Skip to content

Commit

Permalink
remove WildcardBinding.hashCode() eclipse-jdt#3412
Browse files Browse the repository at this point in the history
Since WildcardBinding does not override equals() any custom hashCode()
implementation is likely to introduce hash collisions. Especially for
same "genericType" but different "bound"

eclipse-jdt#3412
  • Loading branch information
jukzi committed Dec 18, 2024
1 parent 8094bfe commit 79091ce
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -614,11 +614,6 @@ public char[] genericTypeSignature() {
return this.genericSignature;
}

@Override
public int hashCode() {
return this.genericType.hashCode();
}

@Override
public boolean hasTypeBit(int bit) {
if (this.typeBits == TypeIds.BitUninitialized) {
Expand Down

0 comments on commit 79091ce

Please sign in to comment.