--- jsr166/src/main/java/util/PriorityQueue.java 2003/08/06 01:57:53 1.23 +++ jsr166/src/main/java/util/PriorityQueue.java 2003/08/08 20:05:07 1.26 @@ -81,7 +81,7 @@ public class PriorityQueue extends Ab /** * Creates a PriorityQueue with the default initial capacity * (11) that orders its elements according to their natural - * ordering (using Comparable.) + * ordering (using Comparable). */ public PriorityQueue() { this(DEFAULT_INITIAL_CAPACITY, null); @@ -90,7 +90,7 @@ public class PriorityQueue extends Ab /** * Creates a PriorityQueue with the specified initial capacity * that orders its elements according to their natural ordering - * (using Comparable.) + * (using Comparable). * * @param initialCapacity the initial capacity for this priority queue. * @throws IllegalArgumentException if initialCapacity is less @@ -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); } @@ -531,7 +529,7 @@ public class PriorityQueue extends Ab /** * Returns the comparator used to order this collection, or null * if this collection is sorted according to its elements natural ordering - * (using Comparable.) + * (using Comparable). * * @return the comparator used to order this collection, or null * if this collection is sorted according to its elements natural ordering.