src/share/classes/java/time/temporal/IsoFields.java

Print this page

        

*** 351,361 **** @Override public String getDisplayName(Locale locale) { Objects.requireNonNull(locale, "locale"); LocaleResources lr = LocaleProviderAdapter.getResourceBundleBased() .getLocaleResources(locale); ! ResourceBundle rb = lr.getFormatData(); return rb.containsKey("field.week") ? rb.getString("field.week") : getName(); } @Override public TemporalUnit getBaseUnit() { --- 351,361 ---- @Override public String getDisplayName(Locale locale) { Objects.requireNonNull(locale, "locale"); LocaleResources lr = LocaleProviderAdapter.getResourceBundleBased() .getLocaleResources(locale); ! ResourceBundle rb = lr.getJavaTimeFormatData(); return rb.containsKey("field.week") ? rb.getString("field.week") : getName(); } @Override public TemporalUnit getBaseUnit() {