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 2022/03/15 14:41:33 UTC
[tomcat] 02/02: Back-port additional false positives
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 78a516ff5480214b5da1b3251a47c04f51585b41
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Mar 15 14:41:13 2022 +0000
Back-port additional false positives
---
res/spotbugs/filter-false-positives.xml | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/res/spotbugs/filter-false-positives.xml b/res/spotbugs/filter-false-positives.xml
index b6cc8ba..912a7eb 100644
--- a/res/spotbugs/filter-false-positives.xml
+++ b/res/spotbugs/filter-false-positives.xml
@@ -579,6 +579,12 @@
<Bug code="OBL" />
</Match>
<Match>
+ <!-- There is no null check (SpotBugs bug?) -->
+ <Class name="org.apache.catalina.startup.ContextConfig" />
+ <Method name="populateJavaClassCache" />
+ <Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE" />
+ </Match>
+ <Match>
<!-- Method checks result and logs error later -->
<Class name="org.apache.catalina.startup.ExpandWar" />
<Method name="deleteDir" />
@@ -855,6 +861,12 @@
<Bug code="RCN"/>
</Match>
<Match>
+ <!-- There is no null check (SpotBugs bug?) -->
+ <Class name="org.apache.catalina.webresources.AbstractArchiveResource" />
+ <Method name="getContent" />
+ <Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE" />
+ </Match>
+ <Match>
<!-- Array contents is not mutated -->
<Class name="org.apache.catalina.webresources.CachedResource"/>
<Or>
@@ -1039,6 +1051,12 @@
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
</Match>
<Match>
+ <!-- There is no null check (SpotBugs bug?) -->
+ <Class name="org.apache.jasper.compiler.JDTCompiler$1" />
+ <Method name="findType" />
+ <Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE" />
+ </Match>
+ <Match>
<!-- Sync is not protecting these fields -->
<Class name="org.apache.jasper.compiler.JspConfig"/>
<Or>
@@ -1130,6 +1148,12 @@
<Bug code="OBL"/>
</Match>
<Match>
+ <!-- There is no null-check -->
+ <Class name="org.apache.juli.FileHandler"/>
+ <Method name="lambda$clean$0" />
+ <Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE" />
+ </Match>
+ <Match>
<!-- If encoding is specified it will be used,
otherwise platform default encoding will be used -->
<Class name="org.apache.juli.FileHandler"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org