diff options
author | 2025-02-26 20:26:04 +0000 | |
---|---|---|
committer | 2025-02-26 21:56:08 +0000 | |
commit | 9e4eacfea89e38bee766f0143e0be53b0df8d14a (patch) | |
tree | 3641e85476d8f44999558198c7c217a1487a8130 /location | |
parent | ea4753492243fe2f1e0c10067142064a8177a86e (diff) |
Clean up KeepForWeakReference usage
We now rely on the WeaklyReferencedCallback annotation to automatically
preserve fields that are needed to keep callback type instances that are
weakly referenced when registered.
The affected members should be identically preserved with this change.
Bug: 349245577
Test: FULL_SYSTEM_OPTIMIZE_JAVA=true m services
Flag: EXEMPT refactor
Change-Id: Idb54509fde818d52eff2edeaa694c2c1393e1149
Diffstat (limited to 'location')
-rw-r--r-- | location/java/com/android/internal/location/GpsNetInitiatedHandler.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java index fb89973bcc11..66de8c791fdd 100644 --- a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java +++ b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java @@ -27,8 +27,6 @@ import android.telephony.TelephonyManager; import android.telephony.emergency.EmergencyNumber; import android.util.Log; -import com.android.internal.annotations.KeepForWeakReference; - import java.util.concurrent.TimeUnit; /** @@ -94,7 +92,6 @@ public class GpsNetInitiatedHandler { // The internal implementation of TelephonyManager uses WeakReference so we have to keep a // reference here. - @KeepForWeakReference private final EmergencyCallListener mEmergencyCallListener = new EmergencyCallListener(); private final EmergencyCallCallback mEmergencyCallCallback; |