You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by im...@apache.org on 2005/11/06 20:07:38 UTC

svn commit: r331142 - /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/cache/SoftRefFilesCache.java

Author: imario
Date: Sun Nov  6 11:07:33 2005
New Revision: 331142

URL: http://svn.apache.org/viewcvs?rev=331142&view=rev
Log:
some cleanup

Modified:
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/cache/SoftRefFilesCache.java

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/cache/SoftRefFilesCache.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/cache/SoftRefFilesCache.java?rev=331142&r1=331141&r2=331142&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/cache/SoftRefFilesCache.java (original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/cache/SoftRefFilesCache.java Sun Nov  6 11:07:33 2005
@@ -81,8 +81,6 @@
 						continue;
 					}
 
-					FileSystem fsToRemove = null;
-
 					FileSystemAndNameKey key = (FileSystemAndNameKey) refReverseMap
 							.get(ref);
 
@@ -90,13 +88,8 @@
 					{
 						if (removeFile(key))
 						{
-							fsToRemove = key.getFileSystem();
+							filesystemClose(key.getFileSystem());
 						}
-					}
-
-					if (fsToRemove != null)
-					{
-						filesystemClose(fsToRemove);
 					}
 				}
 				catch (InterruptedException e)



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org