diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-09-09 13:04:31 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-09-09 13:04:31 +0200 |
commit | 21bd081540413a8625247d2e40506112cc1ea218 (patch) | |
tree | fa646e5bbd367dc62f9dd87ae0a7c8bc36208602 /src/jline/project/plugins | |
parent | aedb8db47338637430672b145cfc11e8d89441b9 (diff) | |
download | scala-21bd081540413a8625247d2e40506112cc1ea218.tar.gz scala-21bd081540413a8625247d2e40506112cc1ea218.tar.bz2 scala-21bd081540413a8625247d2e40506112cc1ea218.zip |
Improve Constant#hashCode
- Incorporate `tag`, which is considered by equals, to reduce collisions.
- Use the result of floatToRawIntBits(value) / doubleToRawLongBits(value),
rather than value. This wasn't strictly necessary as (0d.## == (-0d).##)
but this is more obviously correct.
Diffstat (limited to 'src/jline/project/plugins')
0 files changed, 0 insertions, 0 deletions