aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2021-11-22 13:47:48 -0800
committerCole Faust <colefaust@google.com>2021-11-23 11:40:04 -0800
commit03251e48cf4ac548849a704e317c86a0cb854e29 (patch)
tree53b0b1352171f4048bdea62d2f3b6925e24e29c3
parent40df7711a459d9cb94d3097170e5509d30346e51 (diff)
downloadjunit-03251e48cf4ac548849a704e317c86a0cb854e29.tar.gz
Disable errorprone's DoNotCall check in junit
Junit 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: I3b97ae9e02b36b5f05b407691d67e260a67000e9
-rw-r--r--Android.bp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index d12e704..b62e615 100644
--- a/Android.bp
+++ b/Android.bp
@@ -44,6 +44,10 @@ java_library_static {
srcs: ["src/main/java/**/*.java"],
sdk_version: "core_current",
static_libs: ["hamcrest"],
+
+ errorprone: {
+ javacflags: ["-Xep:DoNotCall:OFF"]
+ }
}
// Legacy junit-host jar until references are updated