summaryrefslogtreecommitdiffstats
path: root/core/java/android/os
diff options
context:
space:
mode:
authorScott Kennedy <skennedy@google.com>2013-03-05 19:46:43 -0800
committerScott Kennedy <skennedy@google.com>2013-03-05 19:46:43 -0800
commit8ad7fbae871c9e08b217554b0b5757365ff487c1 (patch)
tree576242c7d287cc62ddccbaafe4476571cc1ba7ec /core/java/android/os
parent78421f903342e5fbc43b162380a99351c27f4fb5 (diff)
downloadframeworks_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.java2
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();