54 |
|
/** |
55 |
|
* get and set for out of bound indices throw IndexOutOfBoundsException |
56 |
|
*/ |
57 |
+ |
@SuppressWarnings("deprecation") |
58 |
|
public void testIndexing() { |
59 |
|
AtomicLongArray aa = new AtomicLongArray(SIZE); |
60 |
|
for (int index : new int[] { -1, SIZE }) { |
160 |
|
* repeated weakCompareAndSet succeeds in changing value when equal |
161 |
|
* to expected |
162 |
|
*/ |
163 |
+ |
@SuppressWarnings("deprecation") |
164 |
|
public void testWeakCompareAndSet() { |
165 |
|
AtomicLongArray aa = new AtomicLongArray(SIZE); |
166 |
|
for (int i = 0; i < SIZE; i++) { |