diff options
| author | 2021-03-12 18:30:30 +0900 | |
|---|---|---|
| committer | 2021-03-12 18:30:30 +0900 | |
| commit | 7bb23a943f3c6311631652bd104d4fa5196a554c (patch) | |
| tree | f4a956398f70251ec95e985137d75951fb201c8f | |
| parent | b002b20492e4ef078c4d717025614f5bbc72733c (diff) | |
Remove VpnType usage in VpnTransportInfo
The VpnType annotation is a hidden symbol, and should be
kept hidden as annotations are disallowed by API guidelines.
Remove its usage in VpnTransportInfo as users of annotated constants
that build against API stubs are expected not to use the annotation.
Bug: 173331190
Test: m
Change-Id: I171fa57f6279defad081c3cd16265d58ec55e57d
| -rw-r--r-- | packages/Connectivity/framework/src/android/net/VpnTransportInfo.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/Connectivity/framework/src/android/net/VpnTransportInfo.java b/packages/Connectivity/framework/src/android/net/VpnTransportInfo.java index 340141b78aa5..c5100794899a 100644 --- a/packages/Connectivity/framework/src/android/net/VpnTransportInfo.java +++ b/packages/Connectivity/framework/src/android/net/VpnTransportInfo.java @@ -42,9 +42,9 @@ public final class VpnTransportInfo implements TransportInfo, Parcelable { MessageUtils.findMessageNames(new Class[]{VpnManager.class}, new String[]{"TYPE_VPN_"}); /** Type of this VPN. */ - @VpnManager.VpnType public final int type; + public final int type; - public VpnTransportInfo(@VpnManager.VpnType int type) { + public VpnTransportInfo(int type) { this.type = type; } |