8316038: Fix doc typos in java.io.Console and java.util.Scanner

Reviewed-by: bpb, naoto, iris
This commit is contained in:
Pavel Rappo 2023-09-12 08:11:24 +00:00
parent 94800781ea
commit f55e799491
2 changed files with 7 additions and 7 deletions

View file

@ -151,7 +151,7 @@ public sealed class Console implements Flushable permits ProxyingConsole {
*
* @param fmt
* A format string as described in <a
* href="../util/Formatter.html#syntax">Format string syntax</a>
* href="../util/Formatter.html#syntax">Format string syntax</a>.
*
* @param args
* Arguments referenced by the format specifiers in the format
@ -306,7 +306,7 @@ public sealed class Console implements Flushable permits ProxyingConsole {
}
/**
* Reads a password or passphrase from the console with echoing disabled
* Reads a password or passphrase from the console with echoing disabled.
*
* @throws IOError
* If an I/O error occurs.

View file

@ -189,7 +189,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
*
* <p>The localized formats are defined in terms of the following parameters,
* which for a particular locale are taken from that locale's {@link
* java.text.DecimalFormat DecimalFormat} object, {@code df}, and its and
* java.text.DecimalFormat DecimalFormat} object, {@code df}, and its
* {@link java.text.DecimalFormatSymbols DecimalFormatSymbols} object,
* {@code dfs}.
*
@ -1844,7 +1844,7 @@ public final class Scanner implements Iterator<String>, Closeable {
* {@code NoSuchElementException} by using a pattern that can
* match nothing, e.g., {@code sc.skip("[ \t]*")}.
*
* @param pattern a string specifying the pattern to skip over
* @param pattern the pattern to skip over
* @return this scanner
* @throws NoSuchElementException if the specified pattern is not found
* @throws IllegalStateException if this scanner is closed