summaryrefslogtreecommitdiff
path: root/tools/aapt/Command.cpp
diff options
context:
space:
mode:
author Andrew Scull <ascull@google.com> 2023-05-12 05:11:30 +0000
committer Andrew Scull <ascull@google.com> 2023-05-12 05:19:12 +0000
commit06f330a12ce6d44d3498477db5c8b0d5d43b4bbd (patch)
tree4f2a2c1ec8731c1c9c99f5f93eb82f8ac44fe3c3 /tools/aapt/Command.cpp
parent3e13eb5a266750dd81c0a5b432788c6fe9502aa3 (diff)
Use String#lines() rather than String#split()
Use the more predictable behaviour of String#lines() to split the stdout string as an example of how it should be parsed. String#split() has slightly surprising behaviour if stdout is empty as it results in an array containing an empty string. Test: atest RemoteProvisioningShellCommandTest Bug: 281584054 Change-Id: I06796772cc58007fefb5d2089ae709965c6576b1
Diffstat (limited to 'tools/aapt/Command.cpp')
0 files changed, 0 insertions, 0 deletions