ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/ArrayList.java
(Generate patch)

Comparing jsr166/src/main/java/util/ArrayList.java (file contents):
Revision 1.60 by jsr166, Wed May 16 16:18:00 2018 UTC vs.
Revision 1.62 by jsr166, Tue May 22 15:51:31 2018 UTC

# Line 571 | Line 571 | public class ArrayList<E> extends Abstra
571          if (to > es.length) {
572              throw new ConcurrentModificationException();
573          }
574 <        var oit = other.iterator();
574 >        Iterator<?> oit = other.iterator();
575          for (; from < to; from++) {
576              if (!oit.hasNext() || !Objects.equals(es[from], oit.next())) {
577                  return false;
# Line 1737 | Line 1737 | public class ArrayList<E> extends Abstra
1737      @Override
1738      public void replaceAll(UnaryOperator<E> operator) {
1739          replaceAllRange(operator, 0, size);
1740 +        modCount++;
1741      }
1742  
1743      private void replaceAllRange(UnaryOperator<E> operator, int i, int end) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines