Merge "Specify the size of the Map in the constructor" into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b1b6efd082
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user