summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2016-07-25 10:05:35 -0700
committerRaph Levien <raph@google.com>2016-07-25 18:19:00 +0000
commit83549088c643586aa6013d947ad2c21464a3878e (patch)
tree3484894b2a98e256d8f10c0e411e69230762381c /tools/aapt2/java/JavaClassGenerator_test.cpp
parentdd756c26e2a081365e9a57685419cdb6526c8a8a (diff)
Enforce consistent sizes for arrays in SpannableStringInternal
The grow logic in SpannableStringInternal#setSpan assumes that the size of mSpanData is consistent with that of mSpans, in particular that if the latter doesn't need to grow, neither does the former. The copySpans() method didn't enforce this, creating an mSpanData array only big enough to hold the data. This patch documents the invariant in a comment and enforces it. Bug: 30359314 Change-Id: Ie25db70a76836e97af8476a7f5c10cb4b976c1cf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions