--- jsr166/src/main/java/util/ArrayList.java 2008/05/18 23:47:55 1.26 +++ jsr166/src/main/java/util/ArrayList.java 2009/07/21 23:56:46 1.29 @@ -1,5 +1,5 @@ /* - * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. + * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -92,7 +92,6 @@ package java.util; * * @author Josh Bloch * @author Neal Gafter - * @version %I%, %G% * @see Collection * @see List * @see LinkedList @@ -180,7 +179,6 @@ public class ArrayList extends Abstra modCount++; int oldCapacity = elementData.length; if (minCapacity > oldCapacity) { - Object oldData[] = elementData; int newCapacity = (oldCapacity * 3)/2 + 1; if (newCapacity < minCapacity) newCapacity = minCapacity; @@ -893,7 +891,7 @@ public class ArrayList extends Abstra private final AbstractList parent; private final int parentOffset; private final int offset; - private int size; + int size; SubList(AbstractList parent, int offset, int fromIndex, int toIndex) { @@ -972,6 +970,7 @@ public class ArrayList extends Abstra public ListIterator listIterator(final int index) { checkForComodification(); rangeCheckForAdd(index); + final int offset = this.offset; return new ListIterator() { int cursor = index;