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.37 by jsr166, Fri Aug 4 03:30:21 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));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines