diff options
| author | 2014-09-10 21:02:25 +0000 | |
|---|---|---|
| committer | 2014-09-10 21:02:26 +0000 | |
| commit | 1b848d4894b3aa82d2fcae605acbede3f865456e (patch) | |
| tree | 40d71b70f664e9316d97f9d2df6df736641a43be | |
| parent | 20dbc370e3b61882400b93174ecfc3a2167a5f22 (diff) | |
| parent | b4e5061fd6e0b665e025713643378ec31188cff2 (diff) | |
Merge "Change EmptyArray System.identityHashCode to Object.hashCode." into lmp-dev
| -rw-r--r-- | core/java/com/android/internal/util/ArrayUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/com/android/internal/util/ArrayUtils.java b/core/java/com/android/internal/util/ArrayUtils.java index 3ed4d518e1e8..8e786da7cf7e 100644 --- a/core/java/com/android/internal/util/ArrayUtils.java +++ b/core/java/com/android/internal/util/ArrayUtils.java @@ -107,7 +107,7 @@ public class ArrayUtils return (T[]) EmptyArray.OBJECT; } - int bucket = ((System.identityHashCode(kind) / 8) & 0x7FFFFFFF) % CACHE_SIZE; + int bucket = (kind.hashCode() & 0x7FFFFFFF) % CACHE_SIZE; Object cache = sCache[bucket]; if (cache == null || cache.getClass().getComponentType() != kind) { |