ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/AtomicReferenceArrayTest.java
(Generate patch)

Comparing jsr166/src/test/tck/AtomicReferenceArrayTest.java (file contents):
Revision 1.36 by jsr166, Wed Jan 4 06:09:58 2017 UTC vs.
Revision 1.38 by jsr166, Sun Jan 7 22:59:17 2018 UTC

# Line 57 | Line 57 | public class AtomicReferenceArrayTest ex
57       */
58      public void testConstructorSubClassArray() {
59          Integer[] a = { two, one, three, four, seven };
60 <        AtomicReferenceArray<Number> aa = new AtomicReferenceArray<Number>(a);
60 >        AtomicReferenceArray<Number> aa = new AtomicReferenceArray<>(a);
61          assertEquals(a.length, aa.length());
62          for (int i = 0; i < a.length; i++) {
63              assertSame(a[i], aa.get(i));
# Line 193 | Line 193 | public class AtomicReferenceArrayTest ex
193      }
194  
195      /**
196 <     * a deserialized serialized array holds same values
196 >     * a deserialized/reserialized array holds same values in same order
197       */
198      public void testSerialization() throws Exception {
199          AtomicReferenceArray x = new AtomicReferenceArray(SIZE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines