Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 888b7fc1 authored by Ján Sebechlebský's avatar Ján Sebechlebský Committed by Automerger Merge Worker
Browse files

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

Merge "Do not preallocate memory in default constructor of Sparse.*Array" into udc-dev am: 709879dc am: 8b3c47ae

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21911725



Change-Id: Ic9c5aba8359705b8b0cb22dced502878e419158a
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 77649e08 8b3c47ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ public class SparseArray<E> implements Cloneable {
     * Creates a new SparseArray containing no mappings.
     */
    public SparseArray() {
        this(10);
        this(0);
    }

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

    /**
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ public class SparseDoubleArray implements Cloneable {

    /** Creates a new SparseDoubleArray containing no mappings. */
    public SparseDoubleArray() {
        this(10);
        this(0);
    }

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

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

    /**