Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
hashCode()
on TemplatizedType
to be equal to that of the c…
…orresponding `IntanceObjectType` when all template parameter values are the unknown type. (i.e. `hashCode(Foo) == hashCode(Foo<?>)`) This is being done because currently such pairs of types (a raw template type and it's specialization on unknown) are considered identity equal (`equals()`). Therefore, the old behaviour violated the contract of `hashCode()`. In a better world we would rather have `Foo !== Foo<?>`, but that change has larger implications. This CL represents a quick fix to bring things to a less-bad state. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=200632664
- Loading branch information
Showing
2 changed files
with
71 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters