Fix FindBugs and Eclipse warnings
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 14 Jan 2011 16:56:59 +0000 (16:56 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 14 Jan 2011 16:56:59 +0000 (16:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1059071 13f79535-47bb-0310-9956-ffa450edef68

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

index 5243a5d..67f7b0c 100644 (file)
@@ -207,7 +207,7 @@ public class ThreadPoolExecutor extends java.util.concurrent.ThreadPoolExecutor
             // 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
index 8532481..752c68b 100644 (file)
     <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" />