Merge "Remove OutcomeReceiver.noResult NonNull annotation"

This commit is contained in:
Guojing Yuan
2022-07-25 16:57:36 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -31613,7 +31613,7 @@ package android.os {
public interface OutcomeReceiver<R, E extends java.lang.Throwable> {
method public default void onError(@NonNull E);
method public void onResult(@NonNull R);
method public void onResult(R);
}
public final class Parcel {

View File

@@ -31,7 +31,7 @@ public interface OutcomeReceiver<R, E extends Throwable> {
* 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