commit | f705ef794f75713191d6fdb85e7c62b489bab92d | [log] [tgz] |
---|---|---|
author | Timothy Yiu <tyiu@google.com> | Fri Mar 14 13:04:50 2025 -0700 |
committer | Victor Chang <vichang@google.com> | Wed Mar 19 16:58:43 2025 +0000 |
tree | a6ee73256f2bdeef96fb82df6faa8913f07123df | |
parent | a97288a6d13bf10665f545ab862d6c4e531bc764 [diff] |
Use String.replace on non-regex string queries In some occasions, String.replaceAll is used over String.replace for simple String replacements. This will lead to a regex matcher being created and will lead to unnecessary memory performance impact. Test: atest CtsIcu4cTestCases CtsIcuTestCases CtsLibcoreTestCases CtsLibcoreOjTestCases CtsBionicTestCases CtsTextTestCases minikin_tests -- --abi x86_64 Bug: 402755031 Change-Id: Ib89ca08fb1f23e6acbab04c761937d1058c2d5ad