Merge "Change the API signature of DateTimePatternGenerator.getBestPattern"

This commit is contained in:
vichang
2021-04-21 14:52:13 +00:00
committed by Gerrit Code Review

View File

@@ -267,7 +267,8 @@ public class DateFormat {
DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(locale);
boolean allowDuplicateFields = !CompatChanges.isChangeEnabled(
DISALLOW_DUPLICATE_FIELD_IN_SKELETON);
return dtpg.getBestPattern(skeleton, allowDuplicateFields);
return dtpg.getBestPattern(skeleton, DateTimePatternGenerator.MATCH_NO_OPTIONS,
allowDuplicateFields);
}
/**