Skip to content
Permalink
Browse files
8276338: Minor improve of wording for String.to(Lower|Upper)Case
Reviewed-by: rriggs, naoto
  • Loading branch information
pavelrappo committed Nov 4, 2021
1 parent afb502e commit bf4ddf9cb7408db321e7fd73600a5a9a85ca49eb
Showing 1 changed file with 7 additions and 8 deletions.
@@ -3329,10 +3329,10 @@ public static String join(CharSequence delimiter,
* Converts all of the characters in this {@code String} to lower
* case using the rules of the given {@code Locale}. Case mapping is based
* on the Unicode Standard version specified by the {@link java.lang.Character Character}
* class. Since case mappings are not always 1:1 char mappings, the resulting
* {@code String} may be a different length than the original {@code String}.
* class. Since case mappings are not always 1:1 char mappings, the resulting {@code String}
* and this {@code String} may differ in length.
* <p>
* Examples of lowercase mappings are in the following table:
* Examples of lowercase mappings are in the following table:
* <table class="plain">
* <caption style="display:none">Lowercase mapping examples showing language code of locale, upper case, lower case, and description</caption>
* <thead>
@@ -3386,7 +3386,7 @@ public String toLowerCase(Locale locale) {

/**
* Converts all of the characters in this {@code String} to lower
* case using the rules of the default locale. This is equivalent to calling
* case using the rules of the default locale. This method is equivalent to
* {@code toLowerCase(Locale.getDefault())}.
* <p>
* <b>Note:</b> This method is locale sensitive, and may produce unexpected
@@ -3411,11 +3411,10 @@ public String toLowerCase() {
* Converts all of the characters in this {@code String} to upper
* case using the rules of the given {@code Locale}. Case mapping is based
* on the Unicode Standard version specified by the {@link java.lang.Character Character}
* class. Since case mappings are not always 1:1 char mappings, the resulting
* {@code String} may be a different length than the original {@code String}.
* class. Since case mappings are not always 1:1 char mappings, the resulting {@code String}
* and this {@code String} may differ in length.
* <p>
* Examples of locale-sensitive and 1:M case mappings are in the following table.
*
* Examples of locale-sensitive and 1:M case mappings are in the following table:
* <table class="plain">
* <caption style="display:none">Examples of locale-sensitive and 1:M case mappings. Shows Language code of locale, lower case, upper case, and description.</caption>
* <thead>

1 comment on commit bf4ddf9

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on bf4ddf9 Nov 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.