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

Comparing jsr166/src/test/tck/AtomicBooleanTest.java (file contents):
Revision 1.28 by jsr166, Fri Jul 29 21:30:37 2016 UTC vs.
Revision 1.30 by dl, Tue Jan 26 13:33:05 2021 UTC

# Line 95 | Line 95 | public class AtomicBooleanTest extends J
95       * repeated weakCompareAndSet succeeds in changing value when equal
96       * to expected
97       */
98 +    @SuppressWarnings("deprecation")
99      public void testWeakCompareAndSet() {
100          AtomicBoolean ai = new AtomicBoolean(true);
101          do {} while (!ai.weakCompareAndSet(true, false));
# Line 120 | Line 121 | public class AtomicBooleanTest extends J
121      }
122  
123      /**
124 <     * a deserialized serialized atomic holds same value
124 >     * a deserialized/reserialized atomic holds same value
125       */
126      public void testSerialization() throws Exception {
127          AtomicBoolean x = new AtomicBoolean();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines