mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8276186: Require getAvailableLocales() methods to include Locale.ROOT
Reviewed-by: prappo, smarks, iris
This commit is contained in:
parent
df02daa6f9
commit
0c409cac78
10 changed files with 108 additions and 22 deletions
|
@ -1730,8 +1730,9 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||
/**
|
||||
* Returns an array of all locales for which the {@code getInstance}
|
||||
* methods of this class can return localized instances.
|
||||
* The array returned must contain at least a {@code Locale}
|
||||
* instance equal to {@link java.util.Locale#US Locale.US}.
|
||||
* At a minimum, the returned array must contain a {@code Locale} instance equal to
|
||||
* {@link Locale#ROOT Locale.ROOT} and a {@code Locale} instance equal to
|
||||
* {@link Locale#US Locale.US}.
|
||||
*
|
||||
* @return An array of locales for which localized
|
||||
* {@code Calendar} instances are available.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue