# | Line 51 | Line 51 | public class AtomicReferenceArrayTest ex | |
---|---|---|
51 | } | |
52 | ||
53 | /** | |
54 | < | * Initialize AtomicReference<Class> with SubClass[] |
54 | > | * Initialize AtomicReferenceArray<Class> with SubClass[] |
55 | */ | |
56 | public void testConstructorSubClassArray() { | |
57 | Integer[] a = { two, one, three, four, seven }; | |
# | Line 199 | Line 199 | public class AtomicReferenceArrayTest ex | |
199 | x.set(i, new Integer(-i)); | |
200 | } | |
201 | AtomicReferenceArray y = serialClone(x); | |
202 | < | assertTrue(x != y); |
202 | > | assertNotSame(x, y); |
203 | assertEquals(x.length(), y.length()); | |
204 | for (int i = 0; i < SIZE; i++) { | |
205 | assertEquals(x.get(i), y.get(i)); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |