[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.27, Tue Aug 12 11:11:58 2003 UTC revision 1.28, Wed Aug 13 14:11:59 2003 UTC
# Line 177  Line 177 
177      public PriorityQueue(Collection<? extends E> c) {      public PriorityQueue(Collection<? extends E> c) {
178          initializeArray(c);          initializeArray(c);
179          if (c instanceof SortedSet) {          if (c instanceof SortedSet) {
180              SortedSet<? extends E> s = (SortedSet<? extends E>) c;              // @fixme double-cast workaround for compiler
181                SortedSet<? extends E> s = (SortedSet<? extends E>) (SortedSet)c;
182              comparator = (Comparator<? super E>)s.comparator();              comparator = (Comparator<? super E>)s.comparator();
183              fillFromSorted(s);              fillFromSorted(s);
184          } else if (c instanceof PriorityQueue) {          } else if (c instanceof PriorityQueue) {

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

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8