--- jsr166/src/test/tck/TreeMapTest.java 2011/11/26 05:42:14 1.23 +++ jsr166/src/test/tck/TreeMapTest.java 2013/05/30 03:28:55 1.27 @@ -16,7 +16,7 @@ public class TreeMapTest extends JSR166T } /** - * Create a map from Integers 1-5 to Strings "A"-"E". + * Returns a new map from Integers 1-5 to Strings "A"-"E". */ private static TreeMap map5() { TreeMap map = new TreeMap(); @@ -41,7 +41,7 @@ public class TreeMapTest extends JSR166T } /** - * + * copy constructor creates map equal to source map */ public void testConstructFromSorted() { TreeMap map = map5(); @@ -600,7 +600,7 @@ public class TreeMapTest extends JSR166T 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);