Skip to content

8361519: Obsolete Unicode Scalar Value link in Character class #26169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/java.base/share/classes/java/lang/Character.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,9 @@
* fixed-width 16-bit entities. The Unicode Standard has since been
* changed to allow for characters whose representation requires more
* than 16 bits. The range of legal <em>code point</em>s is now
* U+0000 to U+10FFFF, known as <em>Unicode scalar value</em>.
* (Refer to the <a
* href="http://www.unicode.org/reports/tr27/#notation"><i>
* definition</i></a> of the U+<i>n</i> notation in the Unicode
* Standard.)
* U+0000 to U+10FFFF, known as
* <em><a href="https://www.unicode.org/glossary/#unicode_scalar_value">
* Unicode scalar value</a></em>.
*
* <p><a id="BMP">The set of characters from U+0000 to U+FFFF</a> is
* sometimes referred to as the <em>Basic Multilingual Plane (BMP)</em>.
Expand Down Expand Up @@ -173,7 +171,7 @@
* use instances for synchronization, or unpredictable behavior may
* occur. For example, in a future release, synchronization may fail.
*
* @spec https://www.unicode.org/reports/tr27 Unicode 3.1.0
* @spec https://www.unicode.org/reports/tr44 Unicode Character Database
* @author Lee Boynton
* @author Guy Steele
* @author Akira Tanaka
Expand Down
14 changes: 7 additions & 7 deletions src/java.base/share/classes/java/util/Locale.java
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@
* RFC 4647: Matching of Language Tags
* @spec https://www.rfc-editor.org/info/rfc5646
* RFC 5646: Tags for Identifying Languages
* @spec https://unicode.org/reports/tr35/
* Unicode Locale Data Markup Language
* @spec https://www.unicode.org/reports/tr35
* Unicode Locale Data Markup Language (LDML)
* @see Builder
* @see ResourceBundle
* @see java.text.Format
Expand Down Expand Up @@ -1687,14 +1687,14 @@ private String computeLanguageTag() {
* {@return a case folded IETF BCP 47 language tag}
*
* <p>This method formats a language tag into one with case convention
* that adheres to section 2.1.1. Formatting of Language Tags of RFC5646.
* that adheres to section 2.1.1. Formatting of Language Tags of RFC 5646.
* This format is defined as: <i>All subtags, including extension and private
* use subtags, use lowercase letters with two exceptions: two-letter
* and four-letter subtags that neither appear at the start of the tag
* nor occur after singletons. Such two-letter subtags are all
* uppercase (as in the tags "en-CA-x-ca" or "sgn-BE-FR") and four-
* letter subtags are titlecase (as in the tag "az-Latn-x-latn").</i> As
* legacy tags, (defined as "grandfathered" in RFC5646) are not always well-formed, this method
* legacy tags, (defined as "grandfathered" in RFC 5646) are not always well-formed, this method
* will simply case fold a legacy tag to match the exact case convention
* for the particular tag specified in the respective
* {@link ##legacy_tags Legacy tags} table.
Expand All @@ -1720,15 +1720,15 @@ private String computeLanguageTag() {
* <p>As the formatting of the case convention is dependent on the
* positioning of certain subtags, callers of this method should ensure
* that the language tag is well-formed, (conforming to section 2.1. Syntax
* of RFC5646).
* of RFC 5646).
*
* @param languageTag the IETF BCP 47 language tag.
* @throws IllformedLocaleException if {@code languageTag} is not well-formed
* @throws NullPointerException if {@code languageTag} is {@code null}
* @spec https://www.rfc-editor.org/rfc/rfc5646.html#section-2.1
* RFC5646 2.1. Syntax
* RFC 5646: 2.1. Syntax
* @spec https://www.rfc-editor.org/rfc/rfc5646#section-2.1.1
* RFC5646 2.1.1. Formatting of Language Tags
* RFC 5646: 2.1.1. Formatting of Language Tags
* @since 21
*/
public static String caseFoldLanguageTag(String languageTag) {
Expand Down