--- jsr166/src/test/tck/ConcurrentSkipListSubMapTest.java 2012/02/21 01:54:04 1.21 +++ jsr166/src/test/tck/ConcurrentSkipListSubMapTest.java 2013/05/30 03:28:55 1.23 @@ -18,7 +18,7 @@ public class ConcurrentSkipListSubMapTes } /** - * Creates a map from Integers 1-5 to Strings "A"-"E". + * Returns a new map from Integers 1-5 to Strings "A"-"E". */ private static ConcurrentNavigableMap map5() { ConcurrentSkipListMap map = new ConcurrentSkipListMap(); @@ -36,7 +36,7 @@ public class ConcurrentSkipListSubMapTes } /** - * Creates a map from Integers -5 to -1 to Strings "A"-"E". + * Returns a new map from Integers -5 to -1 to Strings "A"-"E". */ private static ConcurrentNavigableMap dmap5() { ConcurrentSkipListMap map = new ConcurrentSkipListMap(); @@ -595,7 +595,7 @@ public class ConcurrentSkipListSubMapTes NavigableMap x = map5(); NavigableMap y = serialClone(x); - assertTrue(x != y); + assertNotSame(x, y); assertEquals(x.size(), y.size()); assertEquals(x.toString(), y.toString()); assertEquals(x, y); @@ -1269,7 +1269,7 @@ public class ConcurrentSkipListSubMapTes NavigableMap x = dmap5(); NavigableMap y = serialClone(x); - assertTrue(x != y); + assertNotSame(x, y); assertEquals(x.size(), y.size()); assertEquals(x.toString(), y.toString()); assertEquals(x, y);