diff options
| author | 2022-11-15 13:14:05 -0500 | |
|---|---|---|
| committer | 2022-11-15 13:19:10 -0500 | |
| commit | a6ab5b715c3213d003fcb950a9d68b2c9e919206 (patch) | |
| tree | 9151655c5dca5f4003c9afa2adcb710d94dcec12 /tests/DynamicCodeLoggerIntegrationTests/src | |
| parent | b4c05895304a0b340df46ac14bb92db82adafa02 (diff) | |
Do not capture argument from ServiceListing.Callback
As the argument passed is the internal arraylist (mutable), capturing it
in the Runnable passed to the executor could cause a
ConcurrentModificationException.
Instead, map it before defining the Runnable so by the time the callback
returns, we don't have any copies of it.
The test checks that the original argument passed is the one that's
mapped and not a modified copy.
Test: atest ControlsListingControllerImpl
Fixes: 259222196
Change-Id: I6fff508dca50f0f9ac6981ad94e7cc9212cafda9
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src')
0 files changed, 0 insertions, 0 deletions