7000136: Backward compatibility problem in LocaleNameProvider

Reviewed-by: srl
This commit is contained in:
Yoshito Umaoka 2010-11-18 11:35:31 -08:00 committed by Naoto Sato
parent 193b5129c1
commit 64f52e63b0

View File

@ -94,7 +94,9 @@ public abstract class LocaleNameProvider extends LocaleServiceProvider {
* @see java.util.Locale#getDisplayScript(java.util.Locale)
* @since 1.7
*/
public abstract String getDisplayScript(String scriptCode, Locale locale);
public String getDisplayScript(String scriptCode, Locale locale) {
return null;
}
/**
* Returns a localized name for the given <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">