--- jsr166/src/main/java/util/TreeSet.java 2005/05/02 18:38:53 1.8 +++ jsr166/src/main/java/util/TreeSet.java 2005/05/02 21:44:01 1.9 @@ -265,9 +265,9 @@ public class TreeSet if (m.size()==0 && c.size() > 0 && c instanceof SortedSet && m instanceof TreeMap) { - SortedSet> set = (SortedSet>) (SortedSet) c; + SortedSet set = (SortedSet) c; TreeMap map = (TreeMap) m; - Comparator cc = (Comparator) set.comparator(); + Comparator cc = (Comparator) set.comparator(); Comparator mc = map.comparator(); if (cc==mc || (cc != null && cc.equals(mc))) { map.addAllForTreeSet(set, PRESENT); @@ -652,7 +652,7 @@ public class TreeSet s.defaultReadObject(); // Read in Comparator - Comparator c = (Comparator) s.readObject(); + Comparator c = (Comparator) s.readObject(); // Create backing TreeMap TreeMap tm;