use of com.ibm.icu.impl.ICUResourceBundle in project es6draft by anba.
the class ListFormatObject method createListFormatter.
@SuppressWarnings("deprecation")
private ListFormatter createListFormatter() {
ULocale locale = ULocale.forLanguageTag(this.locale);
ICUResourceBundle r = (ICUResourceBundle) UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, locale);
String resourceStyle = resourceStyle();
return new ListFormatter(r.getWithFallback("listPattern/" + resourceStyle + "/2").getString(), r.getWithFallback("listPattern/" + resourceStyle + "/start").getString(), r.getWithFallback("listPattern/" + resourceStyle + "/middle").getString(), r.getWithFallback("listPattern/" + resourceStyle + "/end").getString());
}
Aggregations