--- jsr166/src/main/java/util/PriorityQueue.java 2011/07/13 11:27:28 1.74 +++ jsr166/src/main/java/util/PriorityQueue.java 2011/12/12 20:53:11 1.77 @@ -77,6 +77,7 @@ package java.util; * @author Josh Bloch, Doug Lea * @param the type of elements held in this collection */ +@SuppressWarnings("unchecked") public class PriorityQueue extends AbstractQueue implements java.io.Serializable { @@ -724,16 +725,14 @@ public class PriorityQueue extends Ab } /** - * Saves the state of the instance to a stream (that - * is, serializes it). + * Saves this queue to a stream (that is, serializes it). * * @serialData The length of the array backing the instance is * emitted (int), followed by all of its elements * (each an {@code Object}) in the proper order. - * @param s the stream */ private void writeObject(java.io.ObjectOutputStream s) - throws java.io.IOException{ + throws java.io.IOException { // Write out element count, and any hidden stuff s.defaultWriteObject(); @@ -746,10 +745,7 @@ public class PriorityQueue extends Ab } /** - * Reconstitutes the {@code PriorityQueue} instance from a stream - * (that is, deserializes it). - * - * @param s the stream + * Reconstitutes this queue from a stream (that is, deserializes it). */ private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {