--- jsr166/src/main/java/util/PriorityQueue.java 2003/08/06 18:22:09 1.24 +++ jsr166/src/main/java/util/PriorityQueue.java 2003/08/08 20:05:07 1.26 @@ -159,7 +159,7 @@ public class PriorityQueue extends Ab * specified collection. The priority queue has an initial * capacity of 110% of the size of the specified collection or 1 * if the collection is empty. If the specified collection is an - * instance of a {@link SortedSet} or is another + * instance of a {@link java.util.SortedSet} or is another * PriorityQueue, the priority queue will be sorted * according to the same comparator, or according to its elements' * natural order if the collection is sorted according to its @@ -180,13 +180,11 @@ public class PriorityQueue extends Ab SortedSet s = (SortedSet) c; comparator = (Comparator)s.comparator(); fillFromSorted(s); - } - else if (c instanceof PriorityQueue) { + } else if (c instanceof PriorityQueue) { PriorityQueue s = (PriorityQueue) c; comparator = (Comparator)s.comparator(); fillFromSorted(s); - } - else { + } else { comparator = null; fillFromUnsorted(c); }