< prev index next >

src/com/sun/javatest/util/FileInfoCache.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

@@ -36,11 +36,11 @@
 
     private final int SIZE = 500;
 
     // we can't use generics in util package but this is actually Map<String, Boolean>
     private Map<String, Boolean> map = Collections.synchronizedMap( new LinkedHashMap<String, Boolean>() {
-        protected boolean removeEldestEntry(Map.Entry eldest) {
+        protected boolean removeEldestEntry(Map.Entry<String, Boolean> eldest) {
             return size() > SIZE;
         }
     });
 
     public void put(File f, boolean b) {
< prev index next >