Skip to content

Commit

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

eclipse-jdt#3412
  • Loading branch information
jukzi committed Dec 18, 2024
1 parent c3fb568 commit 45ae2dd
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,6 @@ public PackageBinding getPackage() {
return this.leafComponentType.getPackage();
}

@Override
public int hashCode() {
return this.leafComponentType == null ? super.hashCode() : this.leafComponentType.hashCode();
}

/* Answer true if the receiver type can be assigned to the argument type (right)
*/
@Override
Expand Down

0 comments on commit 45ae2dd

Please sign in to comment.