diff options
author | Kristen Kozak <sebright@google.com> | 2018-02-26 19:07:49 -0800 |
---|---|---|
committer | Kristen Kozak <sebright@google.com> | 2018-02-26 19:10:50 -0800 |
commit | 60b59267eb4bb83b2f50b0fb428971608e79c3b0 (patch) | |
tree | 9f833974c4cacb0d0e492557a41c6ef12baf23af | |
parent | 191015f9e89bc3318430b4b53924074dff7c55da (diff) | |
download | opencensus-java-60b59267eb4bb83b2f50b0fb428971608e79c3b0.tar.gz |
Suppress all FindBugs warnings about NullPointerExceptions.
The warnings are redundant with the Checker Framework's warnings, and they
sometimes conflict.
-rw-r--r-- | findbugs-exclude.xml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/findbugs-exclude.xml b/findbugs-exclude.xml index b951a8cc..bd222a6c 100644 --- a/findbugs-exclude.xml +++ b/findbugs-exclude.xml @@ -18,12 +18,20 @@ <Method name="compareTo" /> </Match> <Match> - <!-- Reason: It conflicts with Checker Framework null analysis. --> - <Bug pattern="NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION"/> - </Match> - <Match> <!-- Reason: BaseMessageEvent only has two visible subclasses. --> <Bug pattern="BC_UNCONFIRMED_CAST"/> <Class name="io.opencensus.internal.BaseMessageEventUtil" /> </Match> + + <!-- Suppress all FindBugs warnings about NullPointerExceptions. They are redundant with the --> + <!-- Checker Framework's warnings, and they sometimes conflict. --> + <Match> + <Bug code="NP"/> + </Match> + <Match> + <Bug pattern="UR_UNINIT_READ"/> + </Match> + <Match> + <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/> + </Match> </FindBugsFilter> |