--- jsr166/src/test/tck/AtomicReferenceArrayTest.java 2013/04/01 21:03:58 1.27 +++ jsr166/src/test/tck/AtomicReferenceArrayTest.java 2014/12/31 19:05:42 1.29 @@ -6,10 +6,12 @@ * Pat Fisher, Mike Judd. */ -import junit.framework.*; import java.util.Arrays; import java.util.concurrent.atomic.AtomicReferenceArray; +import junit.framework.Test; +import junit.framework.TestSuite; + public class AtomicReferenceArrayTest extends JSR166TestCase { public static void main(String[] args) { junit.textui.TestRunner.run(suite()); @@ -199,7 +201,7 @@ public class AtomicReferenceArrayTest ex x.set(i, new Integer(-i)); } AtomicReferenceArray y = serialClone(x); - assertTrue(x != y); + assertNotSame(x, y); assertEquals(x.length(), y.length()); for (int i = 0; i < SIZE; i++) { assertEquals(x.get(i), y.get(i));