ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166e/extra/ReadMostlyVector.java
(Generate patch)

Comparing jsr166/src/jsr166e/extra/ReadMostlyVector.java (file contents):
Revision 1.30 by jsr166, Fri Oct 12 16:27:47 2012 UTC vs.
Revision 1.35 by jsr166, Sun Jan 18 20:17:33 2015 UTC

# Line 5 | Line 5
5   */
6  
7   package jsr166e.extra;
8 +
9   import jsr166e.StampedLock;
10   import java.util.*;
11  
# Line 14 | Line 15 | import java.util.*;
15   * throughput when invocations of read-only methods by multiple
16   * threads are most common.
17   *
18 < * <p> The iterators returned by this class's {@link #iterator()
18 > * <p>The iterators returned by this class's {@link #iterator()
19   * iterator} and {@link #listIterator(int) listIterator} methods are
20   * best-effort in the presence of concurrent modifications, and do
21   * <em>NOT</em> throw {@link ConcurrentModificationException}.  An
# Line 93 | Line 94 | public class ReadMostlyVector<E>
94       * Creates an empty vector with the given initial capacity.
95       *
96       * @param initialCapacity the initial capacity of the underlying array
96     *
97       * @throws IllegalArgumentException if initial capacity is negative
98       */
99      public ReadMostlyVector(int initialCapacity) {
# Line 594 | Line 594 | public class ReadMostlyVector<E>
594          }
595          if (oobe)
596              throw new ArrayIndexOutOfBoundsException(index);
597 <        return (E)e;
597 >        return e;
598      }
599  
600      public int hashCode() {
# Line 1248 | Line 1248 | public class ReadMostlyVector<E>
1248  
1249      static final class ReadMostlyVectorSublist<E>
1250              implements List<E>, RandomAccess, java.io.Serializable {
1251 <        static final long serialVersionUID = 3041673470172026059L;
1251 >        private static final long serialVersionUID = 3041673470172026059L;
1252  
1253          final ReadMostlyVector<E> list;
1254          final int offset;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines