commit | faa2342e585ce148d6de982106ec7b5735f07f1f | [log] [tgz] |
---|---|---|
author | Victor Chang <vichang@google.com> | Thu Jul 13 15:01:02 2017 +0100 |
committer | Victor Chang <vichang@google.com> | Tue Jul 18 10:46:33 2017 +0100 |
tree | 29c6d892bd0b6eb62f1b237f17db02acedff1f3a | |
parent | 4d8a37233981df346feb2be0651e0ed46719c159 [diff] |
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