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


The following commit(s) were added to refs/heads/10.0.x by this push:
     new dab3570ed9 Silence new false positives
dab3570ed9 is described below

commit dab3570ed9de2c858ddbb97818a3965827b21441
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Jun 10 13:39:33 2022 +0100

    Silence new false positives
---
 res/spotbugs/filter-false-positives.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/res/spotbugs/filter-false-positives.xml 
b/res/spotbugs/filter-false-positives.xml
index 1098c3b0d5..3377c8596e 100644
--- a/res/spotbugs/filter-false-positives.xml
+++ b/res/spotbugs/filter-false-positives.xml
@@ -401,6 +401,12 @@
     </Or>
     <Bug pattern="SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING" />
   </Match>
+  <Match>
+    <!-- Use of == rather than equals() is deliberate. -->
+    <Class name="org.apache.catalina.realm.DigestCredentialHandlerBase"/>
+    <Method name="equals"/>
+    <Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/>
+  </Match>
   <Match>
     <!-- Random will be SecureRandom and will be used multiple times. -->
     <Class name="org.apache.catalina.realm.DigestCredentialHandlerBase"/>
@@ -1462,6 +1468,12 @@
     <Method name="URLDecode"/>
     <Bug code="Dm" />
   </Match>
+  <Match>
+    <!-- Not an issue. Initialisation is as intended. -->
+    <Class name="org.apache.tomcat.util.compat.JreCompat"/>
+    <Method name="&lt;clinit&gt;"/>
+    <Bug pattern="IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION" />
+  </Match>
   <Match>
     <!-- URLs used are always provided by the container so would normally be 
-->
     <!-- file URLs.                                                          
-->


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to