You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/06/23 09:04:18 UTC

[tomcat] branch main updated: SpotBugs false positive. NPE isn't possible here.

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new f721ad9  SpotBugs false positive. NPE isn't possible here.
f721ad9 is described below

commit f721ad956ec2026217509e7f945e4cf1d589ee3f
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jun 23 10:03:20 2021 +0100

    SpotBugs false positive. NPE isn't possible here.
---
 res/findbugs/filter-false-positives.xml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/res/findbugs/filter-false-positives.xml b/res/findbugs/filter-false-positives.xml
index 69cfd78..1f0f18e 100644
--- a/res/findbugs/filter-false-positives.xml
+++ b/res/findbugs/filter-false-positives.xml
@@ -33,6 +33,12 @@
     <Bug code="NP" />
   </Match>
   <Match>
+    <!-- Null is not possible here -->
+    <Class name="jakarta.servlet.http.HttpServlet$NoBodyPrintWriter"/>
+    <Method name="resetBuffer"/>
+    <Bug pattern="NP_NULL_PARAM_DEREF"/>
+  </Match>
+  <Match>
     <!-- Only base null is handled by this resolver -->
     <Class name="jakarta.servlet.jsp.el.ImplicitObjectELResolver"/>
     <Or>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org