src/share/classes/javax/swing/text/TextAction.java

Print this page

        

@@ -113,12 +113,12 @@
             String value = (String)a.getValue(Action.NAME);
             h.put((value!=null ? value:""), a);
         }
         Action[] actions = new Action[h.size()];
         int index = 0;
-        for (Enumeration e = h.elements() ; e.hasMoreElements() ;) {
-            actions[index++] = (Action) e.nextElement();
+        for (Enumeration<Action> e = h.elements() ; e.hasMoreElements() ;) {
+            actions[index++] = e.nextElement();
         }
         return actions;
     }
 
     /**