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

Comparing jsr166/src/test/tck/AtomicIntegerFieldUpdaterTest.java (file contents):
Revision 1.16 by jsr166, Sat Nov 21 17:38:05 2009 UTC vs.
Revision 1.17 by jsr166, Tue Dec 1 09:56:28 2009 UTC

# Line 73 | Line 73 | public class AtomicIntegerFieldUpdaterTe
73          assertEquals(2,a.get(this));
74          a.set(this,-3);
75          assertEquals(-3,a.get(this));
76
76      }
77  
78      /**
# Line 92 | Line 91 | public class AtomicIntegerFieldUpdaterTe
91          assertEquals(2,a.get(this));
92          a.lazySet(this,-3);
93          assertEquals(-3,a.get(this));
95
94      }
95  
96      /**
# Line 110 | Line 108 | public class AtomicIntegerFieldUpdaterTe
108          assertTrue(a.compareAndSet(this,2,-4));
109          assertEquals(-4,a.get(this));
110          assertFalse(a.compareAndSet(this,-5,7));
111 <        assertFalse((7 == a.get(this)));
111 >        assertEquals(-4,a.get(this));
112          assertTrue(a.compareAndSet(this,-4,7));
113          assertEquals(7,a.get(this));
114      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines