Merge "Remove unused method from MatchAllNetworkSpecifier" am: 6a5d57c2ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1560475 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2ebaa439101d01b444606a6e0aab4582217224a9
This commit is contained in:
@@ -31,17 +31,6 @@ import android.os.Parcelable;
|
|||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
public final class MatchAllNetworkSpecifier extends NetworkSpecifier implements Parcelable {
|
public final class MatchAllNetworkSpecifier extends NetworkSpecifier implements Parcelable {
|
||||||
/**
|
|
||||||
* Utility method which verifies that the ns argument is not a MatchAllNetworkSpecifier and
|
|
||||||
* throws an IllegalArgumentException if it is.
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public static void checkNotMatchAllNetworkSpecifier(NetworkSpecifier ns) {
|
|
||||||
if (ns instanceof MatchAllNetworkSpecifier) {
|
|
||||||
throw new IllegalArgumentException("A MatchAllNetworkSpecifier is not permitted");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@Override
|
@Override
|
||||||
public boolean canBeSatisfiedBy(NetworkSpecifier other) {
|
public boolean canBeSatisfiedBy(NetworkSpecifier other) {
|
||||||
|
|||||||
Reference in New Issue
Block a user