--- jsr166/src/main/java/util/PriorityQueue.java 2011/12/02 14:37:32 1.76 +++ jsr166/src/main/java/util/PriorityQueue.java 2012/12/15 22:26:29 1.79 @@ -56,14 +56,14 @@ package java.util; * the priority queue in any particular order. If you need ordered * traversal, consider using {@code Arrays.sort(pq.toArray())}. * - *
Note that this implementation is not synchronized. + *
Note that this implementation is not synchronized. * Multiple threads should not access a {@code PriorityQueue} * instance concurrently if any of the threads modifies the queue. * Instead, use the thread-safe {@link * java.util.concurrent.PriorityBlockingQueue} class. * *
Implementation note: this implementation provides
- * O(log(n)) time for the enqueing and dequeing methods
+ * O(log(n)) time for the enqueuing and dequeuing methods
* ({@code offer}, {@code poll}, {@code remove()} and {@code add});
* linear time for the {@code remove(Object)} and {@code contains(Object)}
* methods; and constant time for the retrieval methods
@@ -725,13 +725,11 @@ public class PriorityQueue