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