Commit faa2342e authored by Victor Chang's avatar Victor Chang
Browse files

Fix Matcher.find and reset

- Matcher.find didn't call reset(), but according to the javadoc, it
should.
- reset() didn't obtain a fresh value from mutable CharSequence.
  Given that the constructor uses CharSequence, it should obtain a new value
  from the CharSequence and match it again

Added 2 tests to verify such behaviors accordingly

Bug: 33737213
Test: cts-tradefed run cts -m CtsLibcoreTestCases --primary-abi-only
Change-Id: I16ce01944b8c1baac9b7947d5551fb030eb95fc8
parent 4d8a3723
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment