summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-11-19 11:26:02 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-11-19 11:26:02 +0000
commit7846e2fc3be1c3acc7937cd7e87627bcf7443dde (patch)
tree8fed4ba55042482023078e02057280d080f663c8
parent4e7858c405f1e3d6e41c536ffa650912d0e95966 (diff)
parentbf915ec856e213447bbb800e680168b1fe096548 (diff)
Merge "Remove TODO(b/347269120)s as they will no longer be done" into main
-rw-r--r--core/java/android/content/Context.java2
-rw-r--r--core/java/android/content/ContextWrapper.java1
2 files changed, 0 insertions, 3 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index 744f019a4988..2a5c533df017 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -4484,7 +4484,6 @@ public abstract class Context {
* @see #DISPLAY_HASH_SERVICE
* @see android.view.displayhash.DisplayHashManager
*/
- // TODO(b/347269120): Re-add @Nullable
public abstract Object getSystemService(@ServiceName @NonNull String name);
/**
@@ -4529,7 +4528,6 @@ public abstract class Context {
* <b>never</b> throw a {@link RuntimeException} if the name is not supported.
*/
@SuppressWarnings("unchecked")
- // TODO(b/347269120): Re-add @Nullable
public final <T> T getSystemService(@NonNull Class<T> serviceClass) {
// Because subclasses may override getSystemService(String) we cannot
// perform a lookup by class alone. We must first map the class to its
diff --git a/core/java/android/content/ContextWrapper.java b/core/java/android/content/ContextWrapper.java
index 79fa6ea4d157..77aa62886399 100644
--- a/core/java/android/content/ContextWrapper.java
+++ b/core/java/android/content/ContextWrapper.java
@@ -953,7 +953,6 @@ public class ContextWrapper extends Context {
}
@Override
- // TODO(b/347269120): Re-add @Nullable
public Object getSystemService(String name) {
return mBase.getSystemService(name);
}