From 443b7182a68e3dc06321a7f50a867110993a9007 Mon Sep 17 00:00:00 2001 From: Sherri Lin Date: Wed, 8 Feb 2023 04:49:29 +0100 Subject: [PATCH] Update ConnectivityManager javadoc Removed usages of throws with @link that generates bad HTML and added @CallbackExecutor on executors. Bug: 268170423 Test: atest ConnectivityServiceTest Change-Id: I2e4264c201b1779b1636e3f1c581237490fd0930 --- framework/src/android/net/ConnectivityManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/src/android/net/ConnectivityManager.java b/framework/src/android/net/ConnectivityManager.java index 17389b4529..96ab0e59cc 100644 --- a/framework/src/android/net/ConnectivityManager.java +++ b/framework/src/android/net/ConnectivityManager.java @@ -2476,7 +2476,7 @@ public class ConnectivityManager { @RequiresPermission(android.Manifest.permission.PACKET_KEEPALIVE_OFFLOAD) public @NonNull SocketKeepalive createSocketKeepalive(@NonNull Network network, @NonNull Socket socket, - @NonNull Executor executor, + @NonNull @CallbackExecutor Executor executor, @NonNull Callback callback) { ParcelFileDescriptor dup; try { @@ -5448,9 +5448,9 @@ public class ConnectivityManager { * @return {@code uid} if the connection is found and the app has permission to observe it * (e.g., if it is associated with the calling VPN app's VpnService tunnel) or {@link * android.os.Process#INVALID_UID} if the connection is not found. - * @throws {@link SecurityException} if the caller is not the active VpnService for the current + * @throws SecurityException if the caller is not the active VpnService for the current * user. - * @throws {@link IllegalArgumentException} if an unsupported protocol is requested. + * @throws IllegalArgumentException if an unsupported protocol is requested. */ public int getConnectionOwnerUid( int protocol, @NonNull InetSocketAddress local, @NonNull InetSocketAddress remote) {