summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src
diff options
context:
space:
mode:
author Fabian Kozynski <kozynski@google.com> 2022-11-15 13:14:05 -0500
committer Fabian Kozynski <kozynski@google.com> 2022-11-15 13:19:10 -0500
commita6ab5b715c3213d003fcb950a9d68b2c9e919206 (patch)
tree9151655c5dca5f4003c9afa2adcb710d94dcec12 /tests/DynamicCodeLoggerIntegrationTests/src
parentb4c05895304a0b340df46ac14bb92db82adafa02 (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