Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 26756 invoked from network); 23 Nov 2010 11:13:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Nov 2010 11:13:50 -0000 Received: (qmail 715 invoked by uid 500); 23 Nov 2010 11:14:22 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 485 invoked by uid 500); 23 Nov 2010 11:14:21 -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 471 invoked by uid 99); 23 Nov 2010 11:14:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Nov 2010 11:14:20 +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; Tue, 23 Nov 2010 11:14:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id AA582238899C; Tue, 23 Nov 2010 11:12:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1038055 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java Date: Tue, 23 Nov 2010 11:12:48 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101123111248.AA582238899C@eris.apache.org> Author: sebb Date: Tue Nov 23 11:12:48 2010 New Revision: 1038055 URL: http://svn.apache.org/viewvc?rev=1038055&view=rev Log: Make immutable private fields final for thread-safety Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java?rev=1038055&r1=1038054&r2=1038055&view=diff ============================================================================== --- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java (original) +++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java Tue Nov 23 11:12:48 2010 @@ -61,9 +61,9 @@ public class SoftRefFilesCache extends A new HashMap, FileSystemAndNameKey>(100); private final ReferenceQueue refqueue = new ReferenceQueue(); - private AtomicReference softRefReleaseThread = new AtomicReference(); + private final AtomicReference softRefReleaseThread = new AtomicReference(); - private Lock lock = new ReentrantLock(); + private final Lock lock = new ReentrantLock(); /**