mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-21116 Fix ListFormatterTest on Android
Android ignores assert statement by default. The test also failed when running with ant and on OpenJDK runtime on release-67-1. But no longer fails on master branch.
This commit is contained in:
parent
fc12cf095c
commit
3b1ec5032c
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ public class FormattedValueStringBuilderImpl {
|
|||
int end = i - self.zero;
|
||||
// Handle span fields; don't trim them
|
||||
if (currField instanceof SpanFieldPlaceholder) {
|
||||
assert handleSpan(currField, cfpos, fieldStart, end);
|
||||
boolean handleResult = handleSpan(currField, cfpos, fieldStart, end);
|
||||
assert handleResult;
|
||||
return true;
|
||||
}
|
||||
// Grouping separators can be whitespace; don't throw them out!
|
||||
|
|
Loading…
Add table
Reference in a new issue