From 2d444e78b69e351b967c1cda97b53fc2463eef38 Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 14 Jan 2011 16:56:59 +0000 Subject: [PATCH] Fix FindBugs and Eclipse warnings 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 | 2 +- res/findbugs/filter-false-positives.xml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 @@ + + + + + -- 2.11.0