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

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

Merge "Remove Preconditions usage in TestNetworkSpecifier" am: 1077770f

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

Change-Id: Ifca29ba189f58655b0229467e2d86b0b6426b2d1
parents e3a7e8d8 1077770f
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;
    }