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

Commit d4001983 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Throw exceptions expected by CTS."

parents 85212b5e 32b947ea
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -21,9 +21,12 @@ import android.os.Parcelable;
import android.util.ArrayMap;
import android.util.Log;

import com.android.internal.util.Preconditions;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Set;

/**
@@ -55,6 +58,7 @@ public final class ContentValues implements Parcelable {
     * @param size the initial size of the set of values
     */
    public ContentValues(int size) {
        Preconditions.checkArgumentNonnegative(size);
        mMap = new ArrayMap<>(size);
    }

@@ -64,6 +68,7 @@ public final class ContentValues implements Parcelable {
     * @param from the values to copy
     */
    public ContentValues(ContentValues from) {
        Objects.requireNonNull(from);
        mMap = new ArrayMap<>(from.mMap);
    }