add fields and methods to AbstractList for compatibility

Google Protocol Buffers relies on these.
This commit is contained in:
Joel Dice 2011-08-12 14:29:22 -06:00
parent 3df3892d34
commit 1c59aa51d8

View File

@ -12,4 +12,14 @@ package java.util;
public abstract class AbstractList<T> extends AbstractCollection<T>
implements List<T>
{ }
{
protected int modCount;
public Iterator<T> iterator() {
return listIterator();
}
public ListIterator<T> listIterator() {
return new Collections.ArrayListIterator(this);
}
}