Merge "Do not preallocate memory in default constructor of Sparse.*Array" into udc-dev

This commit is contained in:
Ján Sebechlebský
2023-03-21 08:58:21 +00:00
committed by Android (Google) Code Review
5 changed files with 5 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ public class SparseArray<E> implements Cloneable {
* Creates a new SparseArray containing no mappings.
*/
public SparseArray() {
this(10);
this(0);
}
/**

View File

@@ -51,7 +51,7 @@ public class SparseBooleanArray implements Cloneable {
* Creates a new SparseBooleanArray containing no mappings.
*/
public SparseBooleanArray() {
this(10);
this(0);
}
/**

View File

@@ -50,7 +50,7 @@ public class SparseDoubleArray implements Cloneable {
/** Creates a new SparseDoubleArray containing no mappings. */
public SparseDoubleArray() {
this(10);
this(0);
}
/**

View File

@@ -58,7 +58,7 @@ public class SparseIntArray implements Cloneable {
* Creates a new SparseIntArray containing no mappings.
*/
public SparseIntArray() {
this(10);
this(0);
}
/**

View File

@@ -51,7 +51,7 @@ public class SparseLongArray implements Cloneable {
* Creates a new SparseLongArray containing no mappings.
*/
public SparseLongArray() {
this(10);
this(0);
}
/**