cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r935054 - /cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java
Date Fri, 16 Apr 2010 19:32:59 GMT
Author: dkulp
Date: Fri Apr 16 19:32:59 2010
New Revision: 935054

URL: http://svn.apache.org/viewvc?rev=935054&view=rev
Log:
Don't use the static for the hook

Modified:
    cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java?rev=935054&r1=935053&r2=935054&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java Fri Apr 16
19:32:59 2010
@@ -76,10 +76,11 @@ public final class FileUtils {
                 f = new File(s, "cxf-tmp-" + x);
             }
             defaultTempDir = f;
+            final File f2 = f;
             Thread hook = new Thread() {
                 @Override
                 public void run() {
-                    removeDir(defaultTempDir, true);
+                    removeDir(f2, true);
                 }
             };
             Runtime.getRuntime().addShutdownHook(hook);            



Mime
View raw message