This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 1498abd921208ace57edea88624282966321819b Author: Mark Thomas <[email protected]> AuthorDate: Tue Mar 15 17:39:59 2022 +0000 Back-port additional false positives --- res/spotbugs/filter-false-positives.xml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/res/spotbugs/filter-false-positives.xml b/res/spotbugs/filter-false-positives.xml index 5c80194..48d7218 100644 --- a/res/spotbugs/filter-false-positives.xml +++ b/res/spotbugs/filter-false-positives.xml @@ -2066,7 +2066,10 @@ <Match> <!-- Return value of latch is intentionally ignored --> <Class name="org.apache.catalina.nonblocking.TestNonBlockingAPI"/> - <Method name="testDelayedNBWrite"/> + <Or> + <Method name="testDelayedNBReadWrite"/> + <Method name="testDelayedNBWrite"/> + </Or> <Bug pattern="RV_RETURN_VALUE_IGNORED"/> </Match> <Match> @@ -2269,13 +2272,17 @@ <Bug code="DE" /> </Match> <Match> - <!-- Non-constant is just a split constant --> <Class name="org.apache.catalina.users.DataSourceUserDatabaseTests"/> <Or> <Method name="testBasicUserRoleDatabase"/> <Method name="testUserDatabase"/> </Or> - <Bug pattern="SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE"/> + <Or> + <!-- There is no null check - SpotBugs bug? --> + <Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/> + <!-- Non-constant is just a split constant --> + <Bug pattern="SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE"/> + </Or> </Match> <Match> <!-- Concrete Map type not affected --> @@ -2645,4 +2652,10 @@ </Or> <Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/> </Match> + <Match> + <!-- There is no null check - SpotBugs bug? --> + <Class name="org.apache.tomcat.websocket.server.TestWsServerContainer" /> + <Method name="testBug58232" /> + <Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/> + </Match> </FindBugsFilter> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
