commit | f74b830e681ad321dda5756616371d493fe5110c | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@google.com> | Fri May 06 12:05:47 2016 -0700 |
committer | Pavlin Radoslavov <pavlin@google.com> | Fri May 06 12:05:47 2016 -0700 |
tree | 1b58f6e28df812cd67edc42a49fe752279be6ce0 | |
parent | e3a25ad692cf88455222522542fe374a41024ccf [diff] |
Fix divergent equals and hashCode behavior Calling Objects.hash with a byte[] will call the identity hashCode on the byte[] and this doesn't agree with the use of Objects.deepEquals in equals. Bug caught by error prone. Also, replaced usage of Objects.deepEquals(mServiceDataUuid, ...) with Objects.equals(mServiceDataUuid, ...), because mServiceDataUuid is an Object of type ParcelUuid. Bug: 28585195 Change-Id: Id92734874339985fedafe1a28286a6a4dcd88d3b