aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-10-27 01:25:15 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-10-27 01:25:15 +0000
commitdd45d543bfa8a5886ae66ce4817d3bf6a0996458 (patch)
treec3cc153b0be9c5d44b4fdf780b3dfc9246a5c0e4
parent35555787264677c8c5ee6bcf6ac1a3615218f437 (diff)
parent609ea65c971f6e5c10e47a1b6fb48dcec2436941 (diff)
downloadtestng-android14-release.tar.gz
Change-Id: Ic78fa6af20770b97aa89006c062011d8f03d4501
-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.