Disable errorprone's DoNotCall check in jsr166-tests
These tests call some methods that always throw an exception,
and errorprone's DoNotCall checker enforces that these methods
aren't called. Disable the DoNotCall checker for this module.
Bug: 190944875
Test: Presubmits
Change-Id: I9d6398a6fdad535166064dfe61a53b661d0c6643
diff --git a/JavaLibrary.bp b/JavaLibrary.bp
index 24295f8..1223ecd 100644
--- a/JavaLibrary.bp
+++ b/JavaLibrary.bp
@@ -551,6 +551,11 @@
libs: [
"junit",
],
+ errorprone: {
+ javacflags: [
+ "-Xep:DoNotCall:OFF",
+ ],
+ },
}
// A filegroup that provides access to a source file for a toolchain test that