Skip to content

Commit bf4ddf9

Browse files
committed
8276338: Minor improve of wording for String.to(Lower|Upper)Case
Reviewed-by: rriggs, naoto
1 parent afb502e commit bf4ddf9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3329,10 +3329,10 @@ public static String join(CharSequence delimiter,
33293329
* Converts all of the characters in this {@code String} to lower
33303330
* case using the rules of the given {@code Locale}. Case mapping is based
33313331
* on the Unicode Standard version specified by the {@link java.lang.Character Character}
3332-
* class. Since case mappings are not always 1:1 char mappings, the resulting
3333-
* {@code String} may be a different length than the original {@code String}.
3332+
* class. Since case mappings are not always 1:1 char mappings, the resulting {@code String}
3333+
* and this {@code String} may differ in length.
33343334
* <p>
3335-
* Examples of lowercase mappings are in the following table:
3335+
* Examples of lowercase mappings are in the following table:
33363336
* <table class="plain">
33373337
* <caption style="display:none">Lowercase mapping examples showing language code of locale, upper case, lower case, and description</caption>
33383338
* <thead>
@@ -3386,7 +3386,7 @@ public String toLowerCase(Locale locale) {
33863386

33873387
/**
33883388
* Converts all of the characters in this {@code String} to lower
3389-
* case using the rules of the default locale. This is equivalent to calling
3389+
* case using the rules of the default locale. This method is equivalent to
33903390
* {@code toLowerCase(Locale.getDefault())}.
33913391
* <p>
33923392
* <b>Note:</b> This method is locale sensitive, and may produce unexpected
@@ -3411,11 +3411,10 @@ public String toLowerCase() {
34113411
* Converts all of the characters in this {@code String} to upper
34123412
* case using the rules of the given {@code Locale}. Case mapping is based
34133413
* on the Unicode Standard version specified by the {@link java.lang.Character Character}
3414-
* class. Since case mappings are not always 1:1 char mappings, the resulting
3415-
* {@code String} may be a different length than the original {@code String}.
3414+
* class. Since case mappings are not always 1:1 char mappings, the resulting {@code String}
3415+
* and this {@code String} may differ in length.
34163416
* <p>
3417-
* Examples of locale-sensitive and 1:M case mappings are in the following table.
3418-
*
3417+
* Examples of locale-sensitive and 1:M case mappings are in the following table:
34193418
* <table class="plain">
34203419
* <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>
34213420
* <thead>

0 commit comments

Comments
 (0)