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

Comparing jsr166/src/main/java/util/concurrent/CopyOnWriteArrayList.java (file contents):
Revision 1.114 by jsr166, Mon Nov 4 00:00:39 2013 UTC vs.
Revision 1.115 by jsr166, Fri Jan 31 17:58:35 2014 UTC

# Line 1371 | Line 1371 | public class CopyOnWriteArrayList<E>
1371              lock.lock();
1372              try {
1373                  checkForComodification();
1374 <                if (fromIndex < 0 || toIndex > size)
1374 >                if (fromIndex < 0 || toIndex > size || fromIndex > toIndex)
1375                      throw new IndexOutOfBoundsException();
1376                  return new COWSubList<E>(l, fromIndex + offset,
1377                                           toIndex + offset);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines