mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8241014: Miscellaneous typos in documentation comments
Reviewed-by: igerasim, prappo, psandoz, rriggs, weijun
This commit is contained in:
parent
c5a7490809
commit
17ff85d4ad
39 changed files with 104 additions and 107 deletions
|
@ -1383,7 +1383,7 @@ public final class String
|
|||
* integer <i>k</i> less than {@code len} such that:
|
||||
* <blockquote><pre>
|
||||
* Character.toLowerCase(Character.toUpperCase(this.charAt(toffset+k))) !=
|
||||
Character.toLowerCase(Character.toUpperCase(other.charAt(ooffset+k)))
|
||||
* Character.toLowerCase(Character.toUpperCase(other.charAt(ooffset+k)))
|
||||
* </pre></blockquote>
|
||||
* </ul>
|
||||
*
|
||||
|
@ -2445,12 +2445,12 @@ public final class String
|
|||
* <pre>{@code
|
||||
* List<String> strings = List.of("Java", "is", "cool");
|
||||
* String message = String.join(" ", strings);
|
||||
* //message returned is: "Java is cool"
|
||||
* // message returned is: "Java is cool"
|
||||
*
|
||||
* Set<String> strings =
|
||||
* new LinkedHashSet<>(List.of("Java", "is", "very", "cool"));
|
||||
* String message = String.join("-", strings);
|
||||
* //message returned is: "Java-is-very-cool"
|
||||
* // message returned is: "Java-is-very-cool"
|
||||
* }</pre></blockquote>
|
||||
*
|
||||
* Note that if an individual element is {@code null}, then {@code "null"} is added.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue