Author: markt
Date: Fri Jan 14 16:56:59 2011
New Revision: 1059071

URL: http://svn.apache.org/viewvc?rev=1059071&view=rev
Log:
Fix FindBugs and Eclipse warnings

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java
    tomcat/trunk/res/findbugs/filter-false-positives.xml

Modified: 
tomcat/trunk/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java?rev=1059071&r1=1059070&r2=1059071&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java 
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java 
Fri Jan 14 16:56:59 2011
@@ -207,7 +207,7 @@ public class ThreadPoolExecutor extends 
             // checks that queue.remainingCapacity()==0. I did not understand
             // why, but to get the intended effect of waking up idle threads, I
             // temporarily fake this condition.
-            taskQueue.setForcedRemainingCapacity(0);
+            taskQueue.setForcedRemainingCapacity(Integer.valueOf(0));
         }
 
         // setCorePoolSize(0) wakes idle threads

Modified: tomcat/trunk/res/findbugs/filter-false-positives.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/res/findbugs/filter-false-positives.xml?rev=1059071&r1=1059070&r2=1059071&view=diff
==============================================================================
--- tomcat/trunk/res/findbugs/filter-false-positives.xml (original)
+++ tomcat/trunk/res/findbugs/filter-false-positives.xml Fri Jan 14 16:56:59 
2011
@@ -33,6 +33,11 @@
     <Class name="org.apache.naming.java.javaURLContextFactory" />
     <Bug code="Nm" />
   </Match>
+  <Match>
+    <!-- Yes the simple name is the same as the super class. Accept it. -->
+    <Class name="org.apache.tomcat.util.threads.ThreadPoolExecutor" />
+    <Bug code="Nm" />
+  </Match>
   <!--  Generated code -->
   <Match>
     <Class name="org.apache.el.parser.ELParserTokenManager" />



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to