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

Comparing jsr166/src/main/java/util/Vector.java (file contents):
Revision 1.44 by jsr166, Sat Dec 24 19:32:07 2016 UTC vs.
Revision 1.47 by jsr166, Mon Jan 8 20:57:44 2018 UTC

# Line 70 | Line 70 | import java.util.function.UnaryOperator;
70   *
71   * <p>As of the Java 2 platform v1.2, this class was retrofitted to
72   * implement the {@link List} interface, making it a member of the
73 < * <a href="{@docRoot}/../technotes/guides/collections/index.html">
73 > * <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework">
74   * Java Collections Framework</a>.  Unlike the new collection
75   * implementations, {@code Vector} is synchronized.  If a thread-safe
76   * implementation is not needed, it is recommended to use {@link
# Line 307 | Line 307 | public class Vector<E>
307          if (newSize > elementData.length)
308              grow(newSize);
309          final Object[] es = elementData;
310 <        for (int to = elementCount, i = elementCount = newSize; i < to; i++)
310 >        for (int to = elementCount, i = newSize; i < to; i++)
311              es[i] = null;
312 +        elementCount = newSize;
313      }
314  
315      /**
# Line 1026 | Line 1027 | public class Vector<E>
1027                      setBit(deathRow, i - beg);
1028              if (modCount != expectedModCount)
1029                  throw new ConcurrentModificationException();
1029            expectedModCount++;
1030              modCount++;
1031              int w = beg;
1032              for (i = beg; i < end; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines