# | Line 102 | Line 102 | public class AtomicLongTest extends JSR1 | |
---|---|---|
102 | * repeated weakCompareAndSet succeeds in changing value when equal | |
103 | * to expected | |
104 | */ | |
105 | + | @SuppressWarnings("deprecation") |
106 | public void testWeakCompareAndSet() { | |
107 | AtomicLong ai = new AtomicLong(1); | |
108 | do {} while (!ai.weakCompareAndSet(1, 2)); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |