diff options
author | Brendan Ribera <brendan.ribera@gmail.com> | 2016-09-20 11:07:42 -0700 |
---|---|---|
committer | Brendan Ribera <brendan.ribera@gmail.com> | 2016-09-20 11:07:42 -0700 |
commit | 05aa0df532b263bdfca1ac3f8493db7022950239 (patch) | |
tree | d6d4948e6a219ded90acd026045bec379bd2eb85 /docs | |
parent | 7b00595ddf8622ae429ef37de8ea2f44b6333ad0 (diff) | |
download | protobuf-05aa0df532b263bdfca1ac3f8493db7022950239.tar.gz protobuf-05aa0df532b263bdfca1ac3f8493db7022950239.tar.bz2 protobuf-05aa0df532b263bdfca1ac3f8493db7022950239.zip |
Fix hash computation for JRuby's RubyMessage
`System.identityHashCode` returns a hash that does not consider a
Message's values. This means two Messages with identical values will not
have identical hashCodes.
This patch uses the pattern from RubyMap to combine the hashCodes from
all values in a given message and produce a unique, consistent,
value-based hash.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions