commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1364503 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java
Date Mon, 23 Jul 2012 05:47:50 GMT
Author: ggregory
Date: Mon Jul 23 05:47:49 2012
New Revision: 1364503

URL: http://svn.apache.org/viewvc?rev=1364503&view=rev
Log:
Fix case of filesystemCache -> fileSystemCache.

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java?rev=1364503&r1=1364502&r2=1364503&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/cache/SoftRefFilesCache.java
Mon Jul 23 05:47:49 2012
@@ -52,7 +52,7 @@ public class SoftRefFilesCache extends A
      */
     private final Log log = LogFactory.getLog(SoftRefFilesCache.class);
 
-    private final ConcurrentMap<FileSystem, Map<FileName, Reference<FileObject>>>
filesystemCache =
+    private final ConcurrentMap<FileSystem, Map<FileName, Reference<FileObject>>>
fileSystemCache =
           new ConcurrentHashMap<FileSystem, Map<FileName, Reference<FileObject>>>();
     private final Map<Reference<FileObject>, FileSystemAndNameKey> refReverseMap
=
           new HashMap<Reference<FileObject>, FileSystemAndNameKey>(100);
@@ -302,8 +302,8 @@ public class SoftRefFilesCache extends A
             log.debug("close fs: " + filesystem.getRootName());
         }
 
-        filesystemCache.remove(filesystem);
-        if (filesystemCache.size() < 1)
+        fileSystemCache.remove(filesystem);
+        if (fileSystemCache.size() < 1)
         {
             endThread();
         }
@@ -323,7 +323,7 @@ public class SoftRefFilesCache extends A
         lock.lock();
         try
         {
-            filesystemCache.clear();
+            fileSystemCache.clear();
 
             refReverseMap.clear();
         }
@@ -374,7 +374,7 @@ public class SoftRefFilesCache extends A
 
     protected Map<FileName, Reference<FileObject>> getOrCreateFilesystemCache(final
FileSystem filesystem)
     {
-        if (filesystemCache.size() < 1)
+        if (fileSystemCache.size() < 1)
         {
             startThread();
         }
@@ -383,13 +383,13 @@ public class SoftRefFilesCache extends A
 
         do
         {
-            files = filesystemCache.get(filesystem);
+            files = fileSystemCache.get(filesystem);
             if (files != null)
             {
                 break;
             }
             files = new HashMap<FileName, Reference<FileObject>>();
-        } while (filesystemCache.putIfAbsent(filesystem, files) == null);
+        } while (fileSystemCache.putIfAbsent(filesystem, files) == null);
 
         return files;
     }



Mime
View raw message