You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/java.base/share/classes/java/lang/String.java
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3329,10 +3329,10 @@ public static String join(CharSequence delimiter,
3329
3329
* Converts all of the characters in this {@code String} to lower
3330
3330
* case using the rules of the given {@code Locale}. Case mapping is based
3331
3331
* 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.
3334
3334
* <p>
3335
-
* Examples of lowercase mappings are in the following table:
3335
+
* Examples of lowercase mappings are in the following table:
3336
3336
* <table class="plain">
3337
3337
* <caption style="display:none">Lowercase mapping examples showing language code of locale, upper case, lower case, and description</caption>
3338
3338
* <thead>
@@ -3386,7 +3386,7 @@ public String toLowerCase(Locale locale) {
3386
3386
3387
3387
/**
3388
3388
* 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
3390
3390
* {@code toLowerCase(Locale.getDefault())}.
3391
3391
* <p>
3392
3392
* <b>Note:</b> This method is locale sensitive, and may produce unexpected
@@ -3411,11 +3411,10 @@ public String toLowerCase() {
3411
3411
* Converts all of the characters in this {@code String} to upper
3412
3412
* case using the rules of the given {@code Locale}. Case mapping is based
3413
3413
* 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.
3416
3416
* <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:
3419
3418
* <table class="plain">
3420
3419
* <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>
0 commit comments