commit | cbbbfcba0c68498cde93da2e9b10e748cc5e91ef | [log] [tgz] |
---|---|---|
author | Jay Shrauner <shrauner@google.com> | Thu Aug 14 13:30:28 2014 -0700 |
committer | Jay Shrauner <shrauner@google.com> | Fri Aug 15 13:41:54 2014 -0700 |
tree | b9fcca121814ba3be7a435ed20e18e285b42e554 | |
parent | a920437f6af7b49669518d6e145ca444c6870560 [diff] |
Prevent ConcurrentModificationExceptions Use sets backed by ConcurrentHashMaps instead of HashSets, and CopyOnWriteArrayLists instead of ArrayLists, to prevent concurrent exceptions if listeners try to remove themselves in callbacks while iterating over the listeners. Bug:16325026 Change-Id: Ia86f5cafa1d844aa7927df8ff9b02b5574bdde2b