1406 |
|
* @return a shallow copy of this map |
1407 |
|
*/ |
1408 |
|
public ConcurrentSkipListMap<K,V> clone() { |
1409 |
– |
ConcurrentSkipListMap<K,V> clone = null; |
1409 |
|
try { |
1410 |
< |
clone = (ConcurrentSkipListMap<K,V>) super.clone(); |
1410 |
> |
@SuppressWarnings("unchecked") |
1411 |
> |
ConcurrentSkipListMap<K,V> clone = |
1412 |
> |
(ConcurrentSkipListMap<K,V>) super.clone(); |
1413 |
> |
clone.initialize(); |
1414 |
> |
clone.buildFromSorted(this); |
1415 |
> |
return clone; |
1416 |
|
} catch (CloneNotSupportedException e) { |
1417 |
|
throw new InternalError(); |
1418 |
|
} |
1415 |
– |
|
1416 |
– |
clone.initialize(); |
1417 |
– |
clone.buildFromSorted(this); |
1418 |
– |
return clone; |
1419 |
|
} |
1420 |
|
|
1421 |
|
/** |