Skip to content

Commit

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

eclipse-jdt#3412
  • Loading branch information
jukzi committed Dec 18, 2024
1 parent b9204f2 commit 8094bfe
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ public TypeBinding clone(TypeBinding outerType) {
return copy;
}

@Override
public int hashCode() {
return this.enclosingType.hashCode();
}
/*
* Overriden for code assist. In this case, the constantPoolName() has not been computed yet.
* Slam the source name so that the signature is syntactically correct.
Expand Down

0 comments on commit 8094bfe

Please sign in to comment.