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 2018/05/22 13:46:08 UTC
svn commit: r1832030 - /tomcat/trunk/res/findbugs/filter-false-positives.xml
Author: markt
Date: Tue May 22 13:46:08 2018
New Revision: 1832030
URL: http://svn.apache.org/viewvc?rev=1832030&view=rev
Log:
SpotBugs: o.a.[coyote|jasper] false positives in test cases
Modified:
tomcat/trunk/res/findbugs/filter-false-positives.xml
Modified: tomcat/trunk/res/findbugs/filter-false-positives.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/res/findbugs/filter-false-positives.xml?rev=1832030&r1=1832029&r2=1832030&view=diff
==============================================================================
--- tomcat/trunk/res/findbugs/filter-false-positives.xml (original)
+++ tomcat/trunk/res/findbugs/filter-false-positives.xml Tue May 22 13:46:08 2018
@@ -1711,12 +1711,48 @@
<Bug pattern="DMI_HARDCODED_ABSOLUTE_FILENAME"/>
</Match>
<Match>
+ <!-- Deliberate hack for the purposes of the test -->
+ <Class name="org.apache.coyote.http11.filters.TestChunkedInputFilter$BodyReadServlet"/>
+ <Or>
+ <Field name="countRead"/>
+ <Field name="exceptionDuringRead"/>
+ </Or>
+ <Bug pattern="MSF_MUTABLE_SERVLET_FIELD"/>
+ </Match>
+ <Match>
+ <!-- Deliberate hack for the purposes of the test -->
+ <Class name="org.apache.coyote.http11.filters.TestChunkedInputFilter$EchoHeaderServlet"/>
+ <Field name="exceptionDuringRead"/>
+ <Bug pattern="MSF_MUTABLE_SERVLET_FIELD"/>
+ </Match>
+ <Match>
+ <!-- Deliberate hack for the purposes of the test -->
+ <Class name="org.apache.coyote.http11.TestHttp11Processor"/>
+ <Field name="bug55772IsSecondRequest"/>
+ <Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
+ </Match>
+ <Match>
<!-- Result is negated to compare result when order is reversed -->
<Class name="org.apache.el.TestELEvaluation" />
<Method name="compareBoth" />
<Bug pattern="RV_NEGATING_RESULT_OF_COMPARETO" />
</Match>
<Match>
+ <!-- Performance test so results ignored -->
+ <Class name="org.apache.jasper.compiler.TesterValidator" />
+ <Method name="doTestBug53867" />
+ <Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" />
+ </Match>
+ <Match>
+ <!-- Test is single threaded. Syncs not required. -->
+ <Class name="org.apache.jasper.util.FastRemovalDequeue" />
+ <Or>
+ <Field name="first" />
+ <Field name="last" />
+ </Or>
+ <Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" />
+ </Match>
+ <Match>
<!-- Use of statics is unavoidable in all cases -->
<!-- Better to use it consistently rather than only where necessary -->
<Class name="org.apache.tomcat.jdbc.pool.interceptor.TestInterceptor" />
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org