Merge "Fix off-by-one issue when removing from Iterator" into klp-dev

This commit is contained in:
Adam Lesinski
2013-11-06 17:49:20 +00:00
committed by Android (Google) Code Review

View File

@@ -97,10 +97,10 @@ abstract class MapCollections<K, V> {
if (!mEntryValid) {
throw new IllegalStateException();
}
colRemoveAt(mIndex);
mIndex--;
mEnd--;
mEntryValid = false;
colRemoveAt(mIndex);
}
@Override