public void remove() {if (this.lastPosition == -1) {throw new IllegalStateException();}if (expectedModCount != modCount) {throw new ConcurrentModificationException();}try {AbstractList.this.remove(lastPosition);} catch (IndexOutOfBoundsException e) {throw new ConcurrentModificationException();}expectedModCount = modCount;if (pos == lastPosition) {pos--;}lastPosition = -1;}
public virtual void remove(){if (this.lastPosition == -1){throw new System.InvalidOperationException();}if (this.expectedModCount != this._enclosing.modCount){throw new java.util.ConcurrentModificationException();}try{this._enclosing.remove(this.lastPosition);}catch (System.IndexOutOfRangeException){throw new java.util.ConcurrentModificationException();}this.expectedModCount = this._enclosing.modCount;if (this.pos == this.lastPosition){this.pos--;}this.lastPosition = -1;}