< prev index next >

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

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

@@ -143,12 +143,12 @@
         return map.remove(prefix + key);
     }
 
     public int size() {
         int n = 0;
-        for (Iterator i = map.keySet().iterator(); i.hasNext(); ) {
-            String key = (String) (i.next());
+        for (Iterator<String> i = map.keySet().iterator(); i.hasNext(); ) {
+            String key = (i.next());
             if (key.startsWith(prefix))
                 n++;
         }
         return n;
     }
< prev index next >