src/java.base/share/classes/java/util/Vector.java
changeset 55036 265b110fc022
parent 54971 4285b4d13471
child 57956 e0b8b019d2f5
child 58678 9cf78a70fa4f
equal deleted inserted replaced
55035:3a30c73838f6 55036:265b110fc022
  1367         final int size = elementCount;
  1367         final int size = elementCount;
  1368         for (int i = 0; modCount == expectedModCount && i < size; i++)
  1368         for (int i = 0; modCount == expectedModCount && i < size; i++)
  1369             es[i] = operator.apply(elementAt(es, i));
  1369             es[i] = operator.apply(elementAt(es, i));
  1370         if (modCount != expectedModCount)
  1370         if (modCount != expectedModCount)
  1371             throw new ConcurrentModificationException();
  1371             throw new ConcurrentModificationException();
       
  1372         // TODO(8203662): remove increment of modCount from ...
  1372         modCount++;
  1373         modCount++;
  1373     }
  1374     }
  1374 
  1375 
  1375     @SuppressWarnings("unchecked")
  1376     @SuppressWarnings("unchecked")
  1376     @Override
  1377     @Override