You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/11/10 17:43:38 UTC

svn commit: r1033580 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/cache/LRUFilesCache.java

Author: sebb
Date: Wed Nov 10 16:43:38 2010
New Revision: 1033580

URL: http://svn.apache.org/viewvc?rev=1033580&view=rev
Log:
Generics warning fix

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/cache/LRUFilesCache.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/cache/LRUFilesCache.java?rev=1033580&r1=1033579&r2=1033580&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/cache/LRUFilesCache.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/cache/LRUFilesCache.java Wed Nov 10 16:43:38 2010
@@ -56,7 +56,7 @@ public class LRUFilesCache extends Abstr
     /**
      * The file cache
      */
-    private class MyLRUMap extends LRUMap
+    private class MyLRUMap extends LRUMap /* implements Map<FileName, FileObject> */
     {
         /** The FileSystem */
         private final FileSystem filesystem;
@@ -168,6 +168,7 @@ public class LRUFilesCache extends Abstr
         }
     }
 
+    @SuppressWarnings("unchecked") // (1)
     protected Map<FileName, FileObject> getOrCreateFilesystemCache(final FileSystem filesystem)
     {
         Map<FileName, FileObject> files = filesystemCache.get(filesystem);
@@ -175,7 +176,7 @@ public class LRUFilesCache extends Abstr
         {
             // System.err.println(">>> create fs " + filesystem);
 
-            files = new MyLRUMap(filesystem, lruSize);
+            files = new MyLRUMap(filesystem, lruSize); // 1
             filesystemCache.put(filesystem, files);
         }