[cvs] / jsr166 / src / main / java / util / PriorityQueue.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/PriorityQueue.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.25, Wed Aug 6 18:42:49 2003 UTC revision 1.26, Fri Aug 8 20:05:07 2003 UTC
# Line 180  Line 180 
180              SortedSet<? extends E> s = (SortedSet<? extends E>) c;              SortedSet<? extends E> s = (SortedSet<? extends E>) c;
181              comparator = (Comparator<? super E>)s.comparator();              comparator = (Comparator<? super E>)s.comparator();
182              fillFromSorted(s);              fillFromSorted(s);
183          }          } else if (c instanceof PriorityQueue<? extends E>) {
         else if (c instanceof PriorityQueue<? extends E>) {  
184              PriorityQueue<? extends E> s = (PriorityQueue<? extends E>) c;              PriorityQueue<? extends E> s = (PriorityQueue<? extends E>) c;
185              comparator = (Comparator<? super E>)s.comparator();              comparator = (Comparator<? super E>)s.comparator();
186              fillFromSorted(s);              fillFromSorted(s);
187          }          } else {
         else {  
188              comparator = null;              comparator = null;
189              fillFromUnsorted(c);              fillFromUnsorted(c);
190          }          }

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8