--- jsr166/src/main/java/util/PriorityQueue.java 2011/06/21 19:29:21 1.73 +++ jsr166/src/main/java/util/PriorityQueue.java 2011/12/02 14:37:32 1.76 @@ -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 { @@ -589,7 +590,7 @@ public class PriorityQueue extends Ab * avoid missing traversing elements. */ private E removeAt(int i) { - assert i >= 0 && i < size; + // assert i >= 0 && i < size; modCount++; int s = --size; if (s == i) // removed last element @@ -733,7 +734,7 @@ public class PriorityQueue extends Ab * @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();