AbstractList.java (remove): Comment out modCount increment to work around compiler bug.
2000-11-02 Bryce McKinlay <bryce@albatross.co.nz> * java/util/AbstractList.java (remove): Comment out modCount increment to work around compiler bug. (add): Ditto. From-SVN: r37204
This commit is contained in:
parent
7177dab5c9
commit
0ad35392f4
@ -1,3 +1,9 @@
|
||||
2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
|
||||
|
||||
* java/util/AbstractList.java (remove): Comment out modCount increment
|
||||
to work around compiler bug.
|
||||
(add): Ditto.
|
||||
|
||||
2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
|
||||
|
||||
* java/util/AbstractList.java: Throw messages with
|
||||
|
@ -496,7 +496,8 @@ public abstract class AbstractList extends AbstractCollection implements List
|
||||
public void remove()
|
||||
{
|
||||
i.remove();
|
||||
SubList.this.modCount++;
|
||||
// FIXME: Uncomment the following line once the compiler is fixed.
|
||||
//SubList.this.modCount++;
|
||||
size--;
|
||||
position = nextIndex();
|
||||
}
|
||||
@ -509,7 +510,8 @@ public abstract class AbstractList extends AbstractCollection implements List
|
||||
public void add(Object o)
|
||||
{
|
||||
i.add(o);
|
||||
SubList.this.modCount++;
|
||||
// FIXME: Uncomment the following line once the compiler is fixed.
|
||||
//SubList.this.modCount++;
|
||||
size++;
|
||||
position++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user