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

Comparing jsr166/src/main/java/util/ArrayList.java (file contents):
Revision 1.10 by jsr166, Mon Nov 28 02:35:46 2005 UTC vs.
Revision 1.11 by jsr166, Mon Nov 28 03:59:23 2005 UTC

# Line 714 | Line 714 | public class ArrayList<E> extends Abstra
714                      throw new ConcurrentModificationException();
715              }
716          }
717 +
718          public E previous() {
719              try {
720                  int i = cursor - 1;
721 <                E next = get(i);
721 >                E prev = get(i);
722                  lastRet = i;
723                  cursor = i;
724 <                return next;
724 >                return prev;
725              } catch (IndexOutOfBoundsException ex) {
726                  throw new NoSuchElementException();
727              } finally {
# Line 758 | Line 759 | public class ArrayList<E> extends Abstra
759              expectedModCount = modCount;
760          }
761      }
761
762   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines