# | Line 180 | Line 180 | public class PriorityQueue<E> extends Ab | |
---|---|---|
180 | SortedSet<? extends E> s = (SortedSet<? extends E>) c; | |
181 | comparator = (Comparator<? super E>)s.comparator(); | |
182 | fillFromSorted(s); | |
183 | < | } |
184 | < | else if (c instanceof PriorityQueue<? extends E>) { |
183 | > | } else if (c instanceof PriorityQueue<? extends E>) { |
184 | PriorityQueue<? extends E> s = (PriorityQueue<? extends E>) c; | |
185 | comparator = (Comparator<? super E>)s.comparator(); | |
186 | fillFromSorted(s); | |
187 | < | } |
189 | < | else { |
187 | > | } else { |
188 | comparator = null; | |
189 | fillFromUnsorted(c); | |
190 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |