jdk/src/share/classes/sun/misc/CompoundEnumeration.java
changeset 11131 27747ee5a62a
parent 5506 202f599c92aa
child 14342 8435a30053c1
--- a/jdk/src/share/classes/sun/misc/CompoundEnumeration.java	Sat Dec 03 10:58:19 2011 +0900
+++ b/jdk/src/share/classes/sun/misc/CompoundEnumeration.java	Mon Dec 05 10:19:13 2011 +0800
@@ -33,10 +33,10 @@
  * enumerations.
  */
 public class CompoundEnumeration<E> implements Enumeration<E> {
-    private Enumeration[] enums;
+    private Enumeration<E>[] enums;
     private int index = 0;
 
-    public CompoundEnumeration(Enumeration[] enums) {
+    public CompoundEnumeration(Enumeration<E>[] enums) {
         this.enums = enums;
     }
 
@@ -58,6 +58,6 @@
         if (!next()) {
             throw new NoSuchElementException();
         }
-        return (E)enums[index].nextElement();
+        return enums[index].nextElement();
     }
 }