mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8305206: Add @spec tags in java.base/java.* (part 1)
Reviewed-by: alanb, naoto, darcy, lancea, dfuchs, iris, mchung
This commit is contained in:
parent
ccbb0e8d89
commit
c6bd489cc8
60 changed files with 268 additions and 2 deletions
|
@ -470,6 +470,10 @@ import sun.util.locale.provider.TimeZoneNameUtility;
|
|||
* compatibility, the implementation still does not impose a length
|
||||
* constraint.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc4647
|
||||
* RFC 4647: Matching of Language Tags
|
||||
* @spec https://www.rfc-editor.org/info/rfc5646
|
||||
* RFC 5646: Tags for Identifying Languages
|
||||
* @see Builder
|
||||
* @see ResourceBundle
|
||||
* @see java.text.Format
|
||||
|
@ -3036,6 +3040,7 @@ public final class Locale implements Cloneable, Serializable {
|
|||
* </tbody>
|
||||
* </table>
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc4647 RFC 4647: Matching of Language Tags
|
||||
* @see #filter(List, Collection, FilteringMode)
|
||||
* @see #filterTags(List, Collection, FilteringMode)
|
||||
*
|
||||
|
@ -3107,6 +3112,8 @@ public final class Locale implements Cloneable, Serializable {
|
|||
* {@code "zh-Hant-*"} (Traditional Chinese, any regions) are extended
|
||||
* language ranges.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc4234 RFC 4234: Augmented BNF for Syntax Specifications: ABNF
|
||||
* @spec https://www.rfc-editor.org/info/rfc4647 RFC 4647: Matching of Language Tags
|
||||
* @see #filter
|
||||
* @see #filterTags
|
||||
* @see #lookup
|
||||
|
@ -3303,6 +3310,7 @@ public final class Locale implements Cloneable, Serializable {
|
|||
* @throws NullPointerException if {@code ranges} is null
|
||||
* @throws IllegalArgumentException if a language range or a weight
|
||||
* found in the given {@code ranges} is ill-formed
|
||||
* @spec https://www.rfc-editor.org/info/rfc2616 RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1
|
||||
*/
|
||||
public static List<LanguageRange> parse(String ranges) {
|
||||
return LocaleMatcher.parse(ranges);
|
||||
|
@ -3324,6 +3332,7 @@ public final class Locale implements Cloneable, Serializable {
|
|||
* @throws NullPointerException if {@code ranges} is null
|
||||
* @throws IllegalArgumentException if a language range or a weight
|
||||
* found in the given {@code ranges} is ill-formed
|
||||
* @spec https://www.rfc-editor.org/info/rfc2616 RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1
|
||||
* @see #parse(String)
|
||||
* @see #mapEquivalents
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue