[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.26, Fri Aug 8 20:05:07 2003 UTC revision 1.27, Tue Aug 12 11:11:58 2003 UTC
# Line 176  Line 176 
176       */       */
177      public PriorityQueue(Collection<? extends E> c) {      public PriorityQueue(Collection<? extends E> c) {
178          initializeArray(c);          initializeArray(c);
179          if (c instanceof SortedSet<? extends E>) {          if (c instanceof SortedSet) {
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) {
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);

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

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8