diff options
author | Scott Kennedy <skennedy@google.com> | 2013-03-05 19:46:43 -0800 |
---|---|---|
committer | Scott Kennedy <skennedy@google.com> | 2013-03-05 19:46:43 -0800 |
commit | 8ad7fbae871c9e08b217554b0b5757365ff487c1 (patch) | |
tree | 576242c7d287cc62ddccbaafe4476571cc1ba7ec /core/java/android/os | |
parent | 78421f903342e5fbc43b162380a99351c27f4fb5 (diff) | |
download | frameworks_base-8ad7fbae871c9e08b217554b0b5757365ff487c1.zip frameworks_base-8ad7fbae871c9e08b217554b0b5757365ff487c1.tar.gz frameworks_base-8ad7fbae871c9e08b217554b0b5757365ff487c1.tar.bz2 |
Specify the size of the Map in the constructor
Change-Id: Ie3325f387cec72216cb70c1b764370e6f3dd1a3e
Diffstat (limited to 'core/java/android/os')
-rw-r--r-- | core/java/android/os/Bundle.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/os/Bundle.java b/core/java/android/os/Bundle.java index 18a0018..b8769b4 100644 --- a/core/java/android/os/Bundle.java +++ b/core/java/android/os/Bundle.java @@ -218,7 +218,7 @@ public final class Bundle implements Parcelable, Cloneable { return; } if (mMap == null) { - mMap = new HashMap<String, Object>(); + mMap = new HashMap<String, Object>(N); } mParcelledData.readMapInternal(mMap, N, mClassLoader); mParcelledData.recycle(); |