From 5fb0d9aa510a62a13fb385e96b9eab0f047f9615 Mon Sep 17 00:00:00 2001 From: Guojing Yuan Date: Tue, 19 Jul 2022 20:06:21 +0000 Subject: [PATCH] Remove OutcomeReceiver.noResult NonNull annotation Bug: 239455439 Test: make Change-Id: I3b783a01f6decd646223af884da4b066d9e087fd --- core/api/current.txt | 2 +- core/java/android/os/OutcomeReceiver.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index bb3264701ca5a..1438a4abcdb8f 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -31610,7 +31610,7 @@ package android.os { public interface OutcomeReceiver { method public default void onError(@NonNull E); - method public void onResult(@NonNull R); + method public void onResult(R); } public final class Parcel { diff --git a/core/java/android/os/OutcomeReceiver.java b/core/java/android/os/OutcomeReceiver.java index 01b2764114463..4b9552e238ebc 100644 --- a/core/java/android/os/OutcomeReceiver.java +++ b/core/java/android/os/OutcomeReceiver.java @@ -31,7 +31,7 @@ public interface OutcomeReceiver { * Called when the asynchronous operation succeeds and delivers a result value. * @param result The value delivered by the asynchronous operation. */ - void onResult(@NonNull R result); + void onResult(R result); /** * Called when the asynchronous operation fails. The mode of failure is indicated by the