From: markt Date: Fri, 14 Jan 2011 16:56:59 +0000 (+0000) Subject: Fix FindBugs and Eclipse warnings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2d444e78b69e351b967c1cda97b53fc2463eef38;p=tomcat7.0 Fix FindBugs and Eclipse warnings git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1059071 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java b/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java index 5243a5d9f..67f7b0c21 100644 --- a/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java +++ b/java/org/apache/tomcat/util/threads/ThreadPoolExecutor.java @@ -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 diff --git a/res/findbugs/filter-false-positives.xml b/res/findbugs/filter-false-positives.xml index 853248119..752c68ba5 100644 --- a/res/findbugs/filter-false-positives.xml +++ b/res/findbugs/filter-false-positives.xml @@ -33,6 +33,11 @@ + + + + +