diff options
author | Jason Neufeld <jneufeld@google.com> | 2014-09-16 18:40:11 -0700 |
---|---|---|
committer | Jason Neufeld <jneufeld@google.com> | 2014-09-16 18:40:11 -0700 |
commit | d0a645c06c723bb309b78af8598ac51d1567f773 (patch) | |
tree | 6f2126722b68644f6e93ab07ef8c8207b3dbe8eb /src/google/protobuf/compiler/javanano/javanano_helpers.cc | |
parent | c4e7b92fefce5b069f50659363c8878612303510 (diff) | |
download | external_protobuf-d0a645c06c723bb309b78af8598ac51d1567f773.zip external_protobuf-d0a645c06c723bb309b78af8598ac51d1567f773.tar.gz external_protobuf-d0a645c06c723bb309b78af8598ac51d1567f773.tar.bz2 |
Includes a MessageNano subclass's name's hashCode in hashCode calculations.
In the current implementation, a message with the same amount of null or
equal-valued fields as a different message type will have the same
hashCode. This adds more variety by including the hashCode of the
class's name in the hashCode calculations.
Change-Id: I284e3e6d198ad8037815948d1f65686465ffd623
Signed-off-by: Jason Neufeld <jneufeld@google.com>
Diffstat (limited to 'src/google/protobuf/compiler/javanano/javanano_helpers.cc')
0 files changed, 0 insertions, 0 deletions