--- jsr166/src/test/tck/PriorityQueueTest.java 2011/05/31 16:16:24 1.23 +++ jsr166/src/test/tck/PriorityQueueTest.java 2013/05/30 03:28:55 1.26 @@ -30,7 +30,7 @@ public class PriorityQueueTest extends J } /** - * Create a queue of given size containing consecutive + * Returns a new queue of given size containing consecutive * Integers 0 ... n. */ private PriorityQueue populatedQueue(int n) { @@ -485,7 +485,7 @@ public class PriorityQueueTest extends J Queue x = populatedQueue(SIZE); Queue y = serialClone(x); - assertTrue(x != y); + assertNotSame(x, y); assertEquals(x.size(), y.size()); while (!x.isEmpty()) { assertFalse(y.isEmpty());