# | Line 199 | Line 199 | public class PriorityQueue<E> extends Ab | |
---|---|---|
199 | public PriorityQueue(Collection<? extends E> c) { | |
200 | initializeArray(c); | |
201 | if (c instanceof SortedSet) { | |
202 | < | // @fixme double-cast workaround for compiler |
203 | < | SortedSet<? extends E> s = (SortedSet<? extends E>) (SortedSet)c; |
202 | > | SortedSet<? extends E> s = (SortedSet<? extends E>)c; |
203 | comparator = (Comparator<? super E>)s.comparator(); | |
204 | fillFromSorted(s); | |
205 | } else if (c instanceof PriorityQueue) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |