aboutsummaryrefslogtreecommitdiff
path: root/findbugs-exclude.xml
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2018-02-26 19:07:49 -0800
committerKristen Kozak <sebright@google.com>2018-02-26 19:10:50 -0800
commit60b59267eb4bb83b2f50b0fb428971608e79c3b0 (patch)
tree9f833974c4cacb0d0e492557a41c6ef12baf23af /findbugs-exclude.xml
parent191015f9e89bc3318430b4b53924074dff7c55da (diff)
downloadopencensus-java-60b59267eb4bb83b2f50b0fb428971608e79c3b0.tar.gz
Suppress all FindBugs warnings about NullPointerExceptions.
The warnings are redundant with the Checker Framework's warnings, and they sometimes conflict.
Diffstat (limited to 'findbugs-exclude.xml')
-rw-r--r--findbugs-exclude.xml16
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>