diff options
author | Jeff Sharkey <jsharkey@android.com> | 2016-11-18 11:05:18 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2016-11-18 11:06:06 -0700 |
commit | 97449fa389dbc1ab872d63fde001bae7a659991b (patch) | |
tree | 9c525a3aa3c921aeb40909bee1bb2e979cbaa0c7 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 29993074b0708d71b9d752f562ed6aee2a360fa1 (diff) |
Lists returned from OS aren't mutable.
Data returned via ParceledListSlice is a snapshot of data from the
system, and should not be mutated directly.
In particular, this can cause developer confusion if they call
Collection.remove(), which doesn't actually mutate the value in the
system. There are other mutation APIs that developers should be
using instead, such as JobScheduler.cancel().
Test: builds, boots, common operations work
Bug: 27856974
Change-Id: I72528dee4d79e483aa295bd91d1ed80d0d72d21c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions