diff -r dbe9e82f9d25 -r 905e151a185a src/share/classes/com/sun/tools/javac/util/List.java --- a/src/share/classes/com/sun/tools/javac/util/List.java Thu Jan 08 16:34:58 2009 -0800 +++ b/src/share/classes/com/sun/tools/javac/util/List.java Tue Jan 13 13:27:14 2009 +0000 @@ -71,9 +71,10 @@ */ @SuppressWarnings("unchecked") public static List nil() { - return EMPTY_LIST; + return (List)EMPTY_LIST; } - private static List EMPTY_LIST = new List(null,null) { + + private static List EMPTY_LIST = new List(null,null) { public List setTail(List tail) { throw new UnsupportedOperationException(); } @@ -318,7 +319,7 @@ /** Are the two lists the same? */ - public static boolean equals(List xs, List ys) { + public static boolean equals(List xs, List ys) { while (xs.tail != null && ys.tail != null) { if (xs.head == null) { if (ys.head != null) return false; @@ -368,7 +369,7 @@ return (List)list; } - private static Iterator EMPTYITERATOR = new Iterator() { + private static Iterator EMPTYITERATOR = new Iterator() { public boolean hasNext() { return false; } @@ -382,7 +383,7 @@ @SuppressWarnings("unchecked") private static Iterator emptyIterator() { - return EMPTYITERATOR; + return (Iterator)EMPTYITERATOR; } @Override