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.44 by dl, Sat Oct 18 12:29:27 2003 UTC vs.
Revision 1.46 by dl, Mon Dec 29 19:05:19 2003 UTC

# Line 59 | Line 59 | package java.util;
59   * @since 1.5
60   * @version %I%, %G%
61   * @author Josh Bloch
62 < * @param <E> the base class of all elements held in this collection
62 > * @param <E> the type of elements held in this collection
63   */
64   public class PriorityQueue<E> extends AbstractQueue<E>
65      implements Queue<E>, java.io.Serializable {
# Line 199 | Line 199 | public class PriorityQueue<E> extends Ab
199      public PriorityQueue(Collection<? extends E> c) {
200          initializeArray(c);
201          if (c instanceof SortedSet) {
202 <            // @fixme double-cast workaround for compiler
203 <            SortedSet<? extends E> s = (SortedSet<? extends E>) (SortedSet)c;
202 >            SortedSet<? extends E> s = (SortedSet<? extends E>)c;
203              comparator = (Comparator<? super E>)s.comparator();
204              fillFromSorted(s);
205          } else if (c instanceof PriorityQueue) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines