diff --git a/src/java.base/share/classes/java/io/Console.java b/src/java.base/share/classes/java/io/Console.java index 2e864484323..d4d743b8d23 100644 --- a/src/java.base/share/classes/java/io/Console.java +++ b/src/java.base/share/classes/java/io/Console.java @@ -128,8 +128,8 @@ public sealed class Console implements Flushable permits ProxyingConsole { * For simple applications requiring only line-oriented reading, use * {@link #readLine}. *

- * The bulk read operations {@link java.io.Reader#read(char[]) read(char[]) }, - * {@link java.io.Reader#read(char[], int, int) read(char[], int, int) } and + * The bulk read operations {@link java.io.Reader#read(char[]) read(char[])}, + * {@link java.io.Reader#read(char[], int, int) read(char[], int, int)} and * {@link java.io.Reader#read(java.nio.CharBuffer) read(java.nio.CharBuffer)} * on the returned object will not read in characters beyond the line * bound for each invocation, even if the destination buffer has space for @@ -151,7 +151,7 @@ public sealed class Console implements Flushable permits ProxyingConsole { * * @param fmt * A format string as described in Format string syntax + * href="../util/Formatter.html#syntax">Format string syntax. * * @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. @@ -321,7 +321,7 @@ public sealed class Console implements Flushable permits ProxyingConsole { /** * Flushes the console and forces any buffered output to be written - * immediately . + * immediately. */ public void flush() { throw newUnsupportedOperationException(); diff --git a/src/java.base/share/classes/java/util/Scanner.java b/src/java.base/share/classes/java/util/Scanner.java index e5ad20f95d7..bb93745bc24 100644 --- a/src/java.base/share/classes/java/util/Scanner.java +++ b/src/java.base/share/classes/java/util/Scanner.java @@ -189,7 +189,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter; * *

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, 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