1409 |
|
int sz = (int)size; |
1410 |
|
n = tableSizeFor(sz + (sz >>> 1) + 1); |
1411 |
|
} |
1412 |
< |
@SuppressWarnings({"rawtypes","unchecked"}) |
1413 |
< |
Node<K,V>[] tab = (Node<K,V>[])new Node[n]; |
1412 |
> |
@SuppressWarnings("unchecked") |
1413 |
> |
Node<K,V>[] tab = (Node<K,V>[])new Node<?,?>[n]; |
1414 |
|
int mask = n - 1; |
1415 |
|
long added = 0L; |
1416 |
|
while (p != null) { |
2170 |
|
try { |
2171 |
|
if ((tab = table) == null || tab.length == 0) { |
2172 |
|
int n = (sc > 0) ? sc : DEFAULT_CAPACITY; |
2173 |
< |
@SuppressWarnings({"rawtypes","unchecked"}) |
2174 |
< |
Node<K,V>[] nt = (Node<K,V>[])new Node[n]; |
2173 |
> |
@SuppressWarnings("unchecked") |
2174 |
> |
Node<K,V>[] nt = (Node<K,V>[])new Node<?,?>[n]; |
2175 |
|
table = tab = nt; |
2176 |
|
sc = n - (n >>> 2); |
2177 |
|
} |
2261 |
|
if (U.compareAndSwapInt(this, SIZECTL, sc, -1)) { |
2262 |
|
try { |
2263 |
|
if (table == tab) { |
2264 |
< |
@SuppressWarnings({"rawtypes","unchecked"}) |
2265 |
< |
Node<K,V>[] nt = (Node<K,V>[])new Node[n]; |
2264 |
> |
@SuppressWarnings("unchecked") |
2265 |
> |
Node<K,V>[] nt = (Node<K,V>[])new Node<?,?>[n]; |
2266 |
|
table = nt; |
2267 |
|
sc = n - (n >>> 2); |
2268 |
|
} |
2289 |
|
stride = MIN_TRANSFER_STRIDE; // subdivide range |
2290 |
|
if (nextTab == null) { // initiating |
2291 |
|
try { |
2292 |
< |
@SuppressWarnings({"rawtypes","unchecked"}) |
2293 |
< |
Node<K,V>[] nt = (Node<K,V>[])new Node[n << 1]; |
2292 |
> |
@SuppressWarnings("unchecked") |
2293 |
> |
Node<K,V>[] nt = (Node<K,V>[])new Node<?,?>[n << 1]; |
2294 |
|
nextTab = nt; |
2295 |
|
} catch (Throwable ex) { // try to cope with OOME |
2296 |
|
sizeCtl = Integer.MAX_VALUE; |