From cf83d376bc63e5f69138ab84908fbdf80ad568c1 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Tue, 23 May 2023 07:47:19 +0000 Subject: [PATCH] Revert "Suppress lint for methods using APIs promoted from system to public" This reverts commit 73f6948915c73aa4883c1559ae8ddb79eb132883. Reason for revert: The bug that necessitated this workaround has been addressed. Change-Id: Idac3903df029e841bde6c57c9d453b56760d2553 Test: TH --- service/src/com/android/server/ConnectivityService.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/service/src/com/android/server/ConnectivityService.java b/service/src/com/android/server/ConnectivityService.java index 23719113dc..f1c68cbf77 100755 --- a/service/src/com/android/server/ConnectivityService.java +++ b/service/src/com/android/server/ConnectivityService.java @@ -107,7 +107,6 @@ import static java.util.Map.Entry; import android.Manifest; import android.annotation.NonNull; import android.annotation.Nullable; -import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.AppOpsManager; import android.app.BroadcastOptions; @@ -3039,8 +3038,6 @@ public class ConnectivityService extends IConnectivityManager.Stub sendStickyBroadcast(makeGeneralIntent(info, bcastType)); } - // TODO(b/193460475): Remove when tooling supports SystemApi to public API. - @SuppressLint("NewApi") // TODO: Set the mini sdk to 31 and remove @TargetApi annotation when b/205923322 is addressed. @TargetApi(Build.VERSION_CODES.S) private void sendStickyBroadcast(Intent intent) { @@ -8521,8 +8518,6 @@ public class ConnectivityService extends IConnectivityManager.Stub // else not handled } - // TODO(b/193460475): Remove when tooling supports SystemApi to public API. - @SuppressLint("NewApi") private void sendIntent(PendingIntent pendingIntent, Intent intent) { mPendingIntentWakeLock.acquire(); try {