Merge "Specify the size of the Map in the constructor" into jb-mr2-dev

This commit is contained in:
Scott Kennedy
2013-03-07 22:14:18 +00:00
committed by Android (Google) Code Review

View File

@@ -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();