Skip to content

Commit 5850bf4

Browse files
committed
8361519: Obsolete Unicode Scalar Value link in Character class
Reviewed-by: iris
1 parent 8533194 commit 5850bf4

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/java.base/share/classes/java/lang/Character.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,9 @@
117117
* fixed-width 16-bit entities. The Unicode Standard has since been
118118
* changed to allow for characters whose representation requires more
119119
* than 16 bits. The range of legal <em>code point</em>s is now
120-
* U+0000 to U+10FFFF, known as <em>Unicode scalar value</em>.
121-
* (Refer to the <a
122-
* href="http://www.unicode.org/reports/tr27/#notation"><i>
123-
* definition</i></a> of the U+<i>n</i> notation in the Unicode
124-
* Standard.)
120+
* U+0000 to U+10FFFF, known as
121+
* <em><a href="https://www.unicode.org/glossary/#unicode_scalar_value">
122+
* Unicode scalar value</a></em>.
125123
*
126124
* <p><a id="BMP">The set of characters from U+0000 to U+FFFF</a> is
127125
* sometimes referred to as the <em>Basic Multilingual Plane (BMP)</em>.
@@ -173,7 +171,7 @@
173171
* use instances for synchronization, or unpredictable behavior may
174172
* occur. For example, in a future release, synchronization may fail.
175173
*
176-
* @spec https://www.unicode.org/reports/tr27 Unicode 3.1.0
174+
* @spec https://www.unicode.org/reports/tr44 Unicode Character Database
177175
* @author Lee Boynton
178176
* @author Guy Steele
179177
* @author Akira Tanaka

src/java.base/share/classes/java/util/Locale.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,8 @@
561561
* RFC 4647: Matching of Language Tags
562562
* @spec https://www.rfc-editor.org/info/rfc5646
563563
* RFC 5646: Tags for Identifying Languages
564-
* @spec https://unicode.org/reports/tr35/
565-
* Unicode Locale Data Markup Language
564+
* @spec https://www.unicode.org/reports/tr35
565+
* Unicode Locale Data Markup Language (LDML)
566566
* @see Builder
567567
* @see ResourceBundle
568568
* @see java.text.Format
@@ -1687,14 +1687,14 @@ private String computeLanguageTag() {
16871687
* {@return a case folded IETF BCP 47 language tag}
16881688
*
16891689
* <p>This method formats a language tag into one with case convention
1690-
* that adheres to section 2.1.1. Formatting of Language Tags of RFC5646.
1690+
* that adheres to section 2.1.1. Formatting of Language Tags of RFC 5646.
16911691
* This format is defined as: <i>All subtags, including extension and private
16921692
* use subtags, use lowercase letters with two exceptions: two-letter
16931693
* and four-letter subtags that neither appear at the start of the tag
16941694
* nor occur after singletons. Such two-letter subtags are all
16951695
* uppercase (as in the tags "en-CA-x-ca" or "sgn-BE-FR") and four-
16961696
* letter subtags are titlecase (as in the tag "az-Latn-x-latn").</i> As
1697-
* legacy tags, (defined as "grandfathered" in RFC5646) are not always well-formed, this method
1697+
* legacy tags, (defined as "grandfathered" in RFC 5646) are not always well-formed, this method
16981698
* will simply case fold a legacy tag to match the exact case convention
16991699
* for the particular tag specified in the respective
17001700
* {@link ##legacy_tags Legacy tags} table.
@@ -1720,15 +1720,15 @@ private String computeLanguageTag() {
17201720
* <p>As the formatting of the case convention is dependent on the
17211721
* positioning of certain subtags, callers of this method should ensure
17221722
* that the language tag is well-formed, (conforming to section 2.1. Syntax
1723-
* of RFC5646).
1723+
* of RFC 5646).
17241724
*
17251725
* @param languageTag the IETF BCP 47 language tag.
17261726
* @throws IllformedLocaleException if {@code languageTag} is not well-formed
17271727
* @throws NullPointerException if {@code languageTag} is {@code null}
17281728
* @spec https://www.rfc-editor.org/rfc/rfc5646.html#section-2.1
1729-
* RFC5646 2.1. Syntax
1729+
* RFC 5646: 2.1. Syntax
17301730
* @spec https://www.rfc-editor.org/rfc/rfc5646#section-2.1.1
1731-
* RFC5646 2.1.1. Formatting of Language Tags
1731+
* RFC 5646: 2.1.1. Formatting of Language Tags
17321732
* @since 21
17331733
*/
17341734
public static String caseFoldLanguageTag(String languageTag) {

0 commit comments

Comments
 (0)