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.43 by dl, Sun Oct 5 22:59:21 2003 UTC vs.
Revision 1.47 by dl, Sat Apr 10 14:31:46 2004 UTC

# Line 59 | Line 59 | package java.util;
59   * @since 1.5
60   * @version %I%, %G%
61   * @author Josh Bloch
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 {
65 >    implements java.io.Serializable {
66  
67      private static final long serialVersionUID = -7720805057305804111L;
68  
# Line 198 | 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
202 <            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