ICU-12748 Removed @Override from a couple of methods added after Java 6.
X-SVN-Rev: 39347
This commit is contained in:
parent
bf138d8a85
commit
bea0b2961d
@ -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();
|
||||
}
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user