From 866e9111c589923f12aa942e6b45a0fac7397282 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Wed, 20 Nov 2019 14:47:51 -0800 Subject: [PATCH] RemoteException: Add @throws documentation Bug: 144792553 Test: Compiles Change-Id: I5a7464c2fe786b8398c5abdf43f62479de62b133 --- core/java/android/os/RemoteException.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/os/RemoteException.java b/core/java/android/os/RemoteException.java index 10ef27952df40..98c66d1beaf47 100644 --- a/core/java/android/os/RemoteException.java +++ b/core/java/android/os/RemoteException.java @@ -44,6 +44,8 @@ public class RemoteException extends AndroidException { * state or making security decisions based on the perceived success or * failure of a call, or any default values returned. For this reason, we * want to strongly throw when there was trouble with the transaction. + * + * @throws RuntimeException */ @NonNull public RuntimeException rethrowAsRuntimeException() { @@ -60,6 +62,8 @@ public class RemoteException extends AndroidException { * state or making security decisions based on the perceived success or * failure of a call, or any default values returned. For this reason, we * want to strongly throw when there was trouble with the transaction. + * + * @throws RuntimeException */ @NonNull public RuntimeException rethrowFromSystemServer() {