--- jsr166/src/test/tck/ConcurrentHashMapTest.java 2011/03/15 19:47:06 1.23 +++ jsr166/src/test/tck/ConcurrentHashMapTest.java 2011/05/27 19:26:42 1.24 @@ -275,7 +275,6 @@ public class ConcurrentHashMapTest exten assertEquals("Z", map.get(one)); } - /** * replace value fails when the given key not mapped to expected value */ @@ -296,7 +295,6 @@ public class ConcurrentHashMapTest exten assertEquals("Z", map.get(one)); } - /** * remove removes the correct key-value pair from the map */ @@ -337,7 +335,7 @@ public class ConcurrentHashMapTest exten ConcurrentHashMap map = map5(); String s = map.toString(); for (int i = 1; i <= 5; ++i) { - assertTrue(s.indexOf(String.valueOf(i)) >= 0); + assertTrue(s.contains(String.valueOf(i))); } } @@ -483,7 +481,6 @@ public class ConcurrentHashMapTest exten } catch (NullPointerException success) {} } - /** * replace(x, null) throws NPE */ @@ -517,7 +514,6 @@ public class ConcurrentHashMapTest exten } catch (NullPointerException success) {} } - /** * remove(null) throws NPE */ @@ -570,7 +566,6 @@ public class ConcurrentHashMapTest exten assertTrue(r.equals(q)); } - /** * SetValue of an EntrySet entry sets value in the map. */