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

Comparing jsr166/src/test/tck/AtomicIntegerTest.java (file contents):
Revision 1.28 by jsr166, Sat Apr 25 04:55:30 2015 UTC vs.
Revision 1.33 by dl, Tue Jan 26 13:33:05 2021 UTC

# Line 100 | Line 100 | public class AtomicIntegerTest extends J
100       * repeated weakCompareAndSet succeeds in changing value when equal
101       * to expected
102       */
103 +    @SuppressWarnings("deprecation")
104      public void testWeakCompareAndSet() {
105          AtomicInteger ai = new AtomicInteger(1);
106          do {} while (!ai.weakCompareAndSet(1, 2));
# Line 191 | Line 192 | public class AtomicIntegerTest extends J
192      }
193  
194      /**
195 <     * a deserialized serialized atomic holds same value
195 >     * a deserialized/reserialized atomic holds same value
196       */
197      public void testSerialization() throws Exception {
198          AtomicInteger x = new AtomicInteger();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines