diff options
author | Cole Faust <colefaust@google.com> | 2021-11-22 13:47:48 -0800 |
---|---|---|
committer | Cole Faust <colefaust@google.com> | 2021-11-23 11:40:04 -0800 |
commit | 03251e48cf4ac548849a704e317c86a0cb854e29 (patch) | |
tree | 53b0b1352171f4048bdea62d2f3b6925e24e29c3 | |
parent | 40df7711a459d9cb94d3097170e5509d30346e51 (diff) | |
download | junit-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.bp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |