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

Commit 2a213ca2 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by Automerger Merge Worker
Browse files

Merge "Remove Preconditions usage in TestNetworkSpecifier" into sc-dev am: 6dae2c8f

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

Change-Id: I08b826673f5b934f65d2951b6534c3e0eaaa27ee
parents 1c9c38d0 6dae2c8f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -23,8 +23,6 @@ import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;

import com.android.internal.util.Preconditions;

import java.util.Objects;

/**
@@ -43,7 +41,9 @@ public final class TestNetworkSpecifier extends NetworkSpecifier implements Parc
    private final String mInterfaceName;

    public TestNetworkSpecifier(@NonNull String interfaceName) {
        Preconditions.checkStringNotEmpty(interfaceName);
        if (TextUtils.isEmpty(interfaceName)) {
            throw new IllegalArgumentException("Empty interfaceName");
        }
        mInterfaceName = interfaceName;
    }