--- jsr166/src/test/tck/ConcurrentSkipListSubSetTest.java 2012/02/21 01:54:04 1.22 +++ jsr166/src/test/tck/ConcurrentSkipListSubSetTest.java 2013/05/30 03:28:55 1.24 @@ -32,7 +32,7 @@ public class ConcurrentSkipListSubSetTes } /** - * Creates a set of given size containing consecutive + * Returns a new set of given size containing consecutive * Integers 0 ... n. */ private NavigableSet populatedSet(int n) { @@ -53,7 +53,7 @@ public class ConcurrentSkipListSubSetTes } /** - * Creates set of first 5 ints. + * Returns a new set of first 5 ints. */ private NavigableSet set5() { ConcurrentSkipListSet q = new ConcurrentSkipListSet(); @@ -71,7 +71,7 @@ public class ConcurrentSkipListSubSetTes } /** - * Creates set of first 5 negative ints. + * Returns a new set of first 5 negative ints. */ private NavigableSet dset5() { ConcurrentSkipListSet q = new ConcurrentSkipListSet(); @@ -494,7 +494,7 @@ public class ConcurrentSkipListSubSetTes NavigableSet x = populatedSet(SIZE); NavigableSet y = serialClone(x); - assertTrue(x != y); + assertNotSame(y, x); assertEquals(x.size(), y.size()); assertEquals(x, y); assertEquals(y, x); @@ -994,7 +994,7 @@ public class ConcurrentSkipListSubSetTes NavigableSet x = dset5(); NavigableSet y = serialClone(x); - assertTrue(x != y); + assertNotSame(y, x); assertEquals(x.size(), y.size()); assertEquals(x, y); assertEquals(y, x);