mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8223245: Miscellaneous changes imported from jsr166 CVS 2019-06
Reviewed-by: martin
This commit is contained in:
parent
ae0b26613c
commit
05cd3a7bce
2 changed files with 2 additions and 0 deletions
|
@ -1696,6 +1696,7 @@ public class ArrayList<E> extends AbstractList<E>
|
||||||
@Override
|
@Override
|
||||||
public void replaceAll(UnaryOperator<E> operator) {
|
public void replaceAll(UnaryOperator<E> operator) {
|
||||||
replaceAllRange(operator, 0, size);
|
replaceAllRange(operator, 0, size);
|
||||||
|
// TODO(8203662): remove increment of modCount from ...
|
||||||
modCount++;
|
modCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1369,6 +1369,7 @@ public class Vector<E>
|
||||||
es[i] = operator.apply(elementAt(es, i));
|
es[i] = operator.apply(elementAt(es, i));
|
||||||
if (modCount != expectedModCount)
|
if (modCount != expectedModCount)
|
||||||
throw new ConcurrentModificationException();
|
throw new ConcurrentModificationException();
|
||||||
|
// TODO(8203662): remove increment of modCount from ...
|
||||||
modCount++;
|
modCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue