commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r919238 - /commons/proper/io/trunk/src/test/org/apache/commons/io/testtools/FileBasedTestCase.java
Date Fri, 05 Mar 2010 00:08:03 GMT
Author: sebb
Date: Fri Mar  5 00:08:02 2010
New Revision: 919238

URL: http://svn.apache.org/viewvc?rev=919238&view=rev
Log:
Make mutable static field volatile, in case used from multiple threads

Modified:
    commons/proper/io/trunk/src/test/org/apache/commons/io/testtools/FileBasedTestCase.java

Modified: commons/proper/io/trunk/src/test/org/apache/commons/io/testtools/FileBasedTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/org/apache/commons/io/testtools/FileBasedTestCase.java?rev=919238&r1=919237&r2=919238&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/org/apache/commons/io/testtools/FileBasedTestCase.java
(original)
+++ commons/proper/io/trunk/src/test/org/apache/commons/io/testtools/FileBasedTestCase.java
Fri Mar  5 00:08:02 2010
@@ -43,7 +43,7 @@
  */
 public abstract class FileBasedTestCase extends TestCase {
 
-    private static File testDir;
+    private static volatile File testDir;
 
     public FileBasedTestCase(String name) {
         super(name);



Mime
View raw message