commit | 99ef1d40dce0a5b27f08e02e101485aeb48770fc | [log] [tgz] |
---|---|---|
author | Cody Kesting <ckesting@google.com> | Thu Mar 14 10:35:23 2019 -0700 |
committer | Cody Kesting <ckesting@google.com> | Fri Mar 15 15:46:09 2019 +0000 |
tree | 4c0700be3b3e9e85569dade28047e49da2f10449 | |
parent | 1f6b8f50c1b117e85608394221181469f336e244 [diff] |
Fix ServiceState.hashCode() bug. ServiceState currently overrides hashCode() incorrectly. It hashes an Array field without using Arrays.hashCode(), meaning that the default Object.hashCode() implementation is used (which is based on the address of the Array field). This allows equivalent ServiceState instances to produce different hashes. Bug: 128609620 Test: atest CtsTelephonyTestCases:ServiceStateTest Change-Id: I40a7d0b7ebab6d2a1be47ea63a6d223c4c13700b