ICU-12748 Removed @Override from a couple of methods added after Java 6.

X-SVN-Rev: 39347
This commit is contained in:
Yoshito Umaoka 2016-09-26 14:21:59 +00:00
parent bf138d8a85
commit bea0b2961d
2 changed files with 5 additions and 2 deletions

View File

@ -26,7 +26,8 @@ public class CurrencyNameProviderICU extends CurrencyNameProvider {
return sym;
}
@Override
// Not available in Java 6
// @Override
public String getDisplayName(String currencyCode, Locale locale) {
CurrencyDisplayNames curDispNames = CurrencyDisplayNames.getInstance(ICULocaleServiceProvider.toULocaleNoSpecialVariant(locale));
String name = curDispNames.getName(currencyCode);
@ -36,6 +37,7 @@ public class CurrencyNameProviderICU extends CurrencyNameProvider {
return name;
}
@Override
public Locale[] getAvailableLocales() {
return ICULocaleServiceProvider.getAvailableLocales();
}

View File

@ -39,7 +39,8 @@ public class LocaleNameProviderICU extends LocaleNameProvider {
return disp;
}
@Override
// Not available in Java 6
// @Override
public String getDisplayScript(String scriptCode, Locale locale) {
scriptCode = AsciiUtil.toTitleString(scriptCode);
String disp = LocaleDisplayNames.getInstance(ICULocaleServiceProvider.toULocaleNoSpecialVariant(locale))