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

Comparing jsr166/src/test/tck/AtomicLongFieldUpdaterTest.java (file contents):
Revision 1.31 by jsr166, Mon Nov 9 07:54:28 2015 UTC vs.
Revision 1.32 by jsr166, Mon Nov 9 18:42:41 2015 UTC

# Line 38 | Line 38 | public class AtomicLongFieldUpdaterTest
38          }
39  
40          public void checkCompareAndSetProtectedSub() {
41 <            AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> a;
42 <            a = updaterFor("protectedField");
43 <            protectedField = 1;
41 >            AtomicLongFieldUpdater<AtomicLongFieldUpdaterTest> a =
42 >                AtomicLongFieldUpdater.newUpdater
43 >                (AtomicLongFieldUpdaterTest.class, "protectedField");
44 >            this.protectedField = 1;
45              assertTrue(a.compareAndSet(this, 1, 2));
46              assertTrue(a.compareAndSet(this, 2, -4));
47              assertEquals(-4, a.get(this));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines