--- 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();
}
}