Merge "Fix off-by-one issue when removing from Iterator" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1aac29c3dd
@@ -97,10 +97,10 @@ abstract class MapCollections<K, V> {
|
||||
if (!mEntryValid) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
colRemoveAt(mIndex);
|
||||
mIndex--;
|
||||
mEnd--;
|
||||
mEntryValid = false;
|
||||
colRemoveAt(mIndex);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user