mirror of
https://github.com/corda/corda.git
synced 2025-04-15 06:56:59 +00:00
Implementing add(T element) in AbstractList, which just calls add(size(), element) and returns true per the spec.
This commit is contained in:
parent
265ab63e19
commit
b4ecec3034
@ -15,6 +15,11 @@ public abstract class AbstractList<T> extends AbstractCollection<T>
|
||||
{
|
||||
protected int modCount;
|
||||
|
||||
public boolean add(T o) {
|
||||
add(size(), o);
|
||||
return true;
|
||||
}
|
||||
|
||||
public Iterator<T> iterator() {
|
||||
return listIterator();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user