# | Line 177 | Line 177 | public class PriorityQueue<E> extends Ab | |
---|---|---|
177 | public PriorityQueue(Collection<? extends E> c) { | |
178 | initializeArray(c); | |
179 | if (c instanceof SortedSet) { | |
180 | < | SortedSet<? extends E> s = (SortedSet<? extends E>) c; |
180 | > | // @fixme double-cast workaround for compiler |
181 | > | SortedSet<? extends E> s = (SortedSet<? extends E>) (SortedSet)c; |
182 | comparator = (Comparator<? super E>)s.comparator(); | |
183 | fillFromSorted(s); | |
184 | } else if (c instanceof PriorityQueue) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |