This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For #10555 - Fix InputResultDetail hashcode() collisions
The previous implementation was affected by the fact that the class has 3 integer properties, all with values [0..4] (-1 was added recently) and it would just add those value to compute the hashcode. Collisions were a given. By using decimal places for each property the new implementation should avoid collisions while allowing for all the other expected guarantees.
- Loading branch information
1 parent
c5e1ead
commit 261311e
Showing
2 changed files
with
12 additions
and
12 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