summaryrefslogtreecommitdiff
path: root/errorprone/Android.bp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2020-05-04 19:32:05 -0600
committerJeff Sharkey <jsharkey@android.com>2020-05-05 11:21:14 -0600
commit525e1d1b9388336c914776523ba2a9b30a6061e8 (patch)
treea81bf3f51c7f06812cb1c6757662c98a85dba491 /errorprone/Android.bp
parente9fbacf6c5a6d88f96022b6d1c378de8c9000385 (diff)
Add custom Error Prone check for rethrowing.
Apps making calls into the system server may end up persisting internal 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. The rethrowFromSystemServer() method is the best-practice way of doing this correctly, so that we don't clutter logs with misleading stack traces, and this checker verifies that best-practice is used. Disable this check on managers that we know are hosted outside the system process. Bug: 155703208 Test: ./build/soong/soong_ui.bash --make-mode framework-minus-apex services RUN_ERROR_PRONE=true Exempt-From-Owner-Approval: trivial annotations Change-Id: I04b4daf7c92251a14bcc3ebb1e18cd00f6a7f283
Diffstat (limited to 'errorprone/Android.bp')
-rw-r--r--errorprone/Android.bp2
1 files changed, 0 insertions, 2 deletions
diff --git a/errorprone/Android.bp b/errorprone/Android.bp
index 016b85510a94..098f4bfa74ac 100644
--- a/errorprone/Android.bp
+++ b/errorprone/Android.bp
@@ -20,6 +20,4 @@ java_library_host {
plugins: [
"//external/dagger2:dagger2-auto-service",
],
-
- javacflags: ["-verbose"],
}