diff options
author | Colin Cross <ccross@android.com> | 2019-02-15 23:03:34 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-02-19 11:19:09 -0800 |
commit | 454c087be64de626ce3a3ceac6f2aacef85e59ea (patch) | |
tree | b6e71f93ee2e348cca6e0c0371b7152139702385 /java/hiddenapi_singleton.go | |
parent | d7cfaeeebc3a28077deeceec3ec6e0b81bec058a (diff) | |
download | android_build_soong-454c087be64de626ce3a3ceac6f2aacef85e59ea.tar.gz android_build_soong-454c087be64de626ce3a3ceac6f2aacef85e59ea.tar.bz2 android_build_soong-454c087be64de626ce3a3ceac6f2aacef85e59ea.zip |
Add CopyOf utility method
Add a utility method that returns a copy of a slice of strings.
This is primarily useful when appending to a string slice to avoid
accidentally reusing the backing array.
Test: util_test.go
Change-Id: I7801fc7ca19e27ddc9f1b1b452788b723c7f619c
Diffstat (limited to 'java/hiddenapi_singleton.go')
0 files changed, 0 insertions, 0 deletions