* commit '35040fdc428669bf7e3a1ec9ea388fb49ede32df': Fix off-by-one issue when removing from Iterator
This commit is contained in:
@@ -97,10 +97,10 @@ abstract class MapCollections<K, V> {
|
|||||||
if (!mEntryValid) {
|
if (!mEntryValid) {
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
colRemoveAt(mIndex);
|
||||||
mIndex--;
|
mIndex--;
|
||||||
mEnd--;
|
mEnd--;
|
||||||
mEntryValid = false;
|
mEntryValid = false;
|
||||||
colRemoveAt(mIndex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user