# | Line 961 | Line 961 | public class CopyOnWriteArrayList<E> | |
---|---|---|
961 | * | |
962 | * @throws IndexOutOfBoundsException {@inheritDoc} | |
963 | */ | |
964 | < | public ListIterator<E> listIterator(final int index) { |
964 | > | public ListIterator<E> listIterator(int index) { |
965 | Object[] elements = getArray(); | |
966 | int len = elements.length; | |
967 | if (index < 0 || index > len) | |
# | Line 1213 | Line 1213 | public class CopyOnWriteArrayList<E> | |
1213 | } | |
1214 | } | |
1215 | ||
1216 | < | public ListIterator<E> listIterator(final int index) { |
1216 | > | public ListIterator<E> listIterator(int index) { |
1217 | final ReentrantLock lock = l.lock; | |
1218 | lock.lock(); | |
1219 | try { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |