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 965eed8500d093d46b775869a53549f715ab06f2 Author: Mark Thomas <ma...@apache.org> AuthorDate: Sun Jan 2 15:12:34 2022 +0000 Address false positives reported when running via Ant --- res/spotbugs/filter-false-positives.xml | 36 +++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/res/spotbugs/filter-false-positives.xml b/res/spotbugs/filter-false-positives.xml index f2d2e37..00189b0 100644 --- a/res/spotbugs/filter-false-positives.xml +++ b/res/spotbugs/filter-false-positives.xml @@ -546,6 +546,12 @@ <Bug pattern="DM_EXIT" /> </Match> <Match> + <!-- Genric error handling --> + <Class name="org.apache.catalina.startup.Catalina" /> + <Method name="parseServerXml" /> + <Bug pattern="REC_CATCH_EXCEPTION" /> + </Match> + <Match> <!-- Catalina isn't used when embedding --> <Class name="org.apache.catalina.startup.Catalina" /> <Method name="stopServer" /> @@ -840,6 +846,12 @@ <Bug pattern="VO_VOLATILE_REFERENCE_TO_ARRAY"/> </Match> <Match> + <!-- Switch fall-though is deliberate --> + <Class name="org.apache.coyote.AbstractProcessor"/> + <Method name="parseHost"/> + <Bug pattern="SF_SWITCH_FALLTHROUGH" /> + </Match> + <Match> <!-- Use of synchronisation is required to make a sequence of calls in --> <!-- one method appear to be atomic. --> <Class name="org.apache.coyote.AbstractProcessorLight"/> @@ -1116,7 +1128,12 @@ <!-- Simpler to catch Exception than to create dummy implementations of the necessary exception hierarchy --> <Class name="org.apache.naming.factory.SendMailFactory" /> - <Method name="lambda$0" /> + <Or> + <!-- Latest Eclipse plug-in and latest stand-alone JAR report different + method names. --> + <Method name="lambda$0" /> + <Method name="lambda$getObjectInstance$0" /> + </Or> <Bug pattern="DE_MIGHT_IGNORE" /> </Match> <Match> @@ -1300,7 +1317,10 @@ <Match> <!-- Fields are used by native code. Tomcat doesn't use them but they are part of the public API. --> - <Class name="org.apache.tomcat.jni.Sockaddr" /> + <Or> + <Class name="org.apache.tomcat.jni.FileInfo" /> + <Class name="org.apache.tomcat.jni.Sockaddr" /> + </Or> <Bug pattern="UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD" /> </Match> <Match> @@ -1705,6 +1725,18 @@ <Bug code="DLS" /> </Match> <Match> + <!-- Exception is caught so any issue is handled --> + <Class name="org.apache.tomcat.websocket.WsRemoteEndpointImplBase" /> + <Method name="sendObjectByCompletion" /> + <Bug pattern="REC_CATCH_EXCEPTION" /> + </Match> + <Match> + <!-- Exception is caught so any issue is handled --> + <Class name="org.apache.tomcat.websocket.WsWebSocketContainer" /> + <Method name="createSSLEngine" /> + <Bug pattern="REC_CATCH_EXCEPTION" /> + </Match> + <Match> <!-- Random will be used multiple times. --> <Class name="org.apache.tomcat.websocket.WsWebSocketContainer"/> <Method name="generateWsKeyValue"/> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org