[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.45, Sun Oct 19 13:38:29 2003 UTC revision 1.46, Mon Dec 29 19:05:19 2003 UTC
# Line 199  Line 199 
199      public PriorityQueue(Collection<? extends E> c) {      public PriorityQueue(Collection<? extends E> c) {
200          initializeArray(c);          initializeArray(c);
201          if (c instanceof SortedSet) {          if (c instanceof SortedSet) {
202              // @fixme double-cast workaround for compiler              SortedSet<? extends E> s = (SortedSet<? extends E>)c;
             SortedSet<? extends E> s = (SortedSet<? extends E>) (SortedSet)c;  
203              comparator = (Comparator<? super E>)s.comparator();              comparator = (Comparator<? super E>)s.comparator();
204              fillFromSorted(s);              fillFromSorted(s);
205          } else if (c instanceof PriorityQueue) {          } else if (c instanceof PriorityQueue) {

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8