541 |
|
} catch (ConcurrentModificationException ex) { |
542 |
|
r1 = ConcurrentModificationException.class; |
543 |
|
assertFalse(impl.isConcurrent()); |
544 |
– |
} catch (UnsupportedOperationException ex) { |
545 |
– |
r1 = UnsupportedOperationException.class; |
544 |
|
} |
545 |
|
try { |
546 |
|
it2.forEachRemaining(iteratedForEachRemaining::add); |
547 |
|
r2 = iteratedForEachRemaining; |
548 |
|
} catch (ConcurrentModificationException ex) { |
549 |
|
r2 = ConcurrentModificationException.class; |
550 |
< |
} catch (UnsupportedOperationException ex) { |
553 |
< |
r2 = UnsupportedOperationException.class; |
550 |
> |
assertFalse(impl.isConcurrent()); |
551 |
|
} |
552 |
|
assertEquals(r1, r2); |
553 |
|
} |