< prev index next >

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

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

@@ -39,15 +39,15 @@
 public class SortedProperties extends Properties
 {
     // override Keys() to return a sorted set
     public Enumeration<Object> keys() {
         Set<Object> s = new TreeSet<>(); // ordered
-        for (Enumeration e = super.keys(); e.hasMoreElements(); ) {
+        for (Enumeration<?> e = super.keys(); e.hasMoreElements(); ) {
             s.add(e.nextElement());
         }
 
-        final Iterator iter = s.iterator();
+        final Iterator<?> iter = s.iterator();
         return new Enumeration<Object>() {
                 public boolean hasMoreElements() {
                     return iter.hasNext();
                 }
                 public Object nextElement() {
< prev index next >