275 |
|
try { |
276 |
|
full.add(three); |
277 |
|
shouldThrow(); |
278 |
< |
} catch (UnsupportedOperationException e){} |
278 |
> |
} catch (UnsupportedOperationException success) {} |
279 |
|
} |
280 |
|
|
281 |
|
/** |
287 |
|
try { |
288 |
|
full.add(null); |
289 |
|
shouldThrow(); |
290 |
< |
} catch (NullPointerException e){} |
290 |
> |
} catch (NullPointerException success) {} |
291 |
|
} |
292 |
|
|
293 |
|
/** |
299 |
|
try { |
300 |
|
map.keySet(null); |
301 |
|
shouldThrow(); |
302 |
< |
} catch (NullPointerException e) {} |
302 |
> |
} catch (NullPointerException success) {} |
303 |
|
ConcurrentHashMap.KeySetView set = map.keySet(one); |
304 |
|
set.add(one); |
305 |
|
set.add(six); |