commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1030192 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/tasks/VfsTask.java
Date Tue, 02 Nov 2010 19:34:39 GMT
Author: sebb
Date: Tue Nov  2 19:34:39 2010
New Revision: 1030192

URL: http://svn.apache.org/viewvc?rev=1030192&view=rev
Log:
VFS-332 Incorrect lazy initialization and update of static field org.apache.commons.vfs.tasks.VfsTask.manager

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/tasks/VfsTask.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/tasks/VfsTask.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/tasks/VfsTask.java?rev=1030192&r1=1030191&r2=1030192&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/tasks/VfsTask.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/tasks/VfsTask.java
Tue Nov  2 19:34:39 2010
@@ -48,9 +48,10 @@ public class VfsTask
     {
         if (manager == null)
         {
-            manager = new StandardFileSystemManager();
-            manager.setLogger(new AntLogger());
-            manager.init();
+            StandardFileSystemManager mngr = new StandardFileSystemManager();
+            mngr.setLogger(new AntLogger());
+            mngr.init();
+            manager = mngr;
             getProject().addBuildListener(new CloseListener());
         }
         return manager.resolveFile(getProject().getBaseDir(), uri);



Mime
View raw message