diff options
author | Michal Karpinski <mkarpinski@google.com> | 2017-03-02 12:05:52 +0000 |
---|---|---|
committer | Michal Karpinski <mkarpinski@google.com> | 2017-03-02 12:05:57 +0000 |
commit | 55e15bcc3a3c7cba41f1e1e9eabf6fe316838018 (patch) | |
tree | ab75fd7131f9780169003a063dedfd8c38e56364 /tools/aapt2/diff/Diff.cpp | |
parent | 23e6ad0edab63091181f87b1b42ba931570c5496 (diff) |
Use iterator to remove elements from collection when traversing it
Per Java documentation "Iterator.remove is the only safe way to
modify a collection during iteration; the behavior is unspecified
if the underlying collection is modified in any other way while
the iteration is in progress."
Test: updated gmscore to check that onPackageRemoved() works correctly
Bug: 35846264
Change-Id: I878e581db3bf60b9c6b2cf861f66d8b427202b02
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions