ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/PriorityQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/PriorityQueue.java (file contents):
Revision 1.27 by dl, Tue Aug 12 11:11:58 2003 UTC vs.
Revision 1.28 by dl, Wed Aug 13 14:11:59 2003 UTC

# Line 177 | Line 177 | public class PriorityQueue<E> extends Ab
177      public PriorityQueue(Collection<? extends E> c) {
178          initializeArray(c);
179          if (c instanceof SortedSet) {
180 <            SortedSet<? extends E> s = (SortedSet<? extends E>) c;
180 >            // @fixme double-cast workaround for compiler
181 >            SortedSet<? extends E> s = (SortedSet<? extends E>) (SortedSet)c;
182              comparator = (Comparator<? super E>)s.comparator();
183              fillFromSorted(s);
184          } else if (c instanceof PriorityQueue) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines