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

Commit b283a388 authored by Xiao Ma's avatar Xiao Ma Committed by Automerger Merge Worker
Browse files

Merge "Fix the Preconditions dependency in EthernetNetworkSpecifier." am: 13dbbcbc am: 68143853

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

Change-Id: Ie543f7859c93cff3d47cf0f6c4b8b35d0c025e38
parents d4b3e9df 68143853
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;

/**
@@ -47,7 +45,9 @@ public final class EthernetNetworkSpecifier extends NetworkSpecifier implements
     * @param interfaceName Name of the ethernet interface the specifier refers to.
     */
    public EthernetNetworkSpecifier(@NonNull String interfaceName) {
        Preconditions.checkStringNotEmpty(interfaceName);
        if (TextUtils.isEmpty(interfaceName)) {
            throw new IllegalArgumentException();
        }
        mInterfaceName = interfaceName;
    }