commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r331142 - /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/cache/SoftRefFilesCache.java
Date Sun, 06 Nov 2005 19:07:38 GMT
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


Mime
View raw message