OSDN Git Service

Fix divergent equals and hashCode behavior
authorIan Rogers <irogers@google.com>
Wed, 4 May 2016 17:37:28 +0000 (10:37 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Thu, 5 May 2016 00:16:49 +0000 (17:16 -0700)
commit4f6ca743c663912bfd6f2feff20373bd8bb75473
tree67fd79f767ddb5ee06d131c40dac755728049d07
parent124563d21a8454ce627c991ac6fff56407654939
Fix divergent equals and hashCode behavior

Calling Objects.hash with a byte[] will call the identity hashCode on the
byte[] (data, data_mask) and this doesn't agree with the use of
Objects.deepEquals in equals.
Bug caught by error prone.

Bug: 27723540
Change-Id: Ic33f9a341165db6c9339321f81f7af63d627a2cb
src/com/android/bluetooth/gatt/ScanFilterQueue.java