aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index bc1b1a92..8047a81c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -102,6 +102,18 @@ java_library {
"guice",
],
libs: ["junit"],
+
+ errorprone: {
+ javacflags: [
+ "-Xep:ComparableType:WARN",
+ "-Xep:NonRuntimeAnnotation:WARN",
+ "-Xep:GetClassOnAnnotation:WARN",
+ "-Xep:RandomModInteger:WARN",
+ "-Xep:FormatString:WARN",
+ "-Xep:DoubleBraceInitialization:WARN",
+ "-Xep:UnusedCollectionModifiedInPlace:WARN",
+ ],
+ },
}
// TODO: also add the tests once we have testng working.