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

Comparing jsr166/src/main/java/util/LinkedList.java (file contents):
Revision 1.3 by dl, Sat Aug 9 19:55:14 2003 UTC vs.
Revision 1.4 by dl, Mon Aug 11 17:44:24 2003 UTC

# Line 262 | Line 262 | public class LinkedList<E>
262       * @throws NullPointerException if the specified collection is null.
263       */
264      public boolean addAll(int index, Collection<? extends E> c) {
265 <        if (index < 0 || index >= size)
265 >        if (index < 0 || index > size)
266              throw new IndexOutOfBoundsException("Index: "+index+
267                                                  ", Size: "+size);
268          Object[] a = c.toArray();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines