Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 41720 invoked from network); 22 Apr 2010 12:08:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 12:08:41 -0000 Received: (qmail 11859 invoked by uid 500); 22 Apr 2010 12:08:40 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 11785 invoked by uid 500); 22 Apr 2010 12:08:39 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 11778 invoked by uid 99); 22 Apr 2010 12:08:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 12:08:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 12:08:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F294623889E1; Thu, 22 Apr 2010 12:07:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r936806 - in /commons/proper/pool/trunk/src/java/org/apache/commons/pool: PoolUtils.java impl/EvictionTimer.java Date: Thu, 22 Apr 2010 12:07:53 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100422120753.F294623889E1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Thu Apr 22 12:07:53 2010 New Revision: 936806 URL: http://svn.apache.org/viewvc?rev=936806&view=rev Log: Document thread-safety of static fields Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java?rev=936806&r1=936805&r2=936806&view=diff ============================================================================== --- commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java (original) +++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java Thu Apr 22 12:07:53 2010 @@ -40,7 +40,7 @@ public final class PoolUtils { * Timer used to periodically check pools idle object count. * Because a {@link Timer} creates a {@link Thread} this is lazily instantiated. */ - private static Timer MIN_IDLE_TIMER; + private static Timer MIN_IDLE_TIMER; //@GuardedBy("this") /** * PoolUtils instances should NOT be constructed in standard programming. Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java?rev=936806&r1=936805&r2=936806&view=diff ============================================================================== --- commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java (original) +++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java Thu Apr 22 12:07:53 2010 @@ -37,10 +37,10 @@ import java.util.TimerTask; class EvictionTimer { /** Timer instance */ - private static Timer _timer; + private static Timer _timer; //@GuardedBy("this") /** Static usage count tracker */ - private static int _usageCount; + private static int _usageCount; //@GuardedBy("this") /** Prevent instantiation */ private EvictionTimer() {