From e4ecda2b2563fbdff96d82fbbed6c022e28a49da Mon Sep 17 00:00:00 2001 From: Naoto Sato Date: Thu, 8 May 2025 17:52:05 +0000 Subject: [PATCH] 8356221: Clarify Console.charset() method description Reviewed-by: bpb --- src/java.base/share/classes/java/io/Console.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java.base/share/classes/java/io/Console.java b/src/java.base/share/classes/java/io/Console.java index 7e4540ecb06..aaa3ba8dd27 100644 --- a/src/java.base/share/classes/java/io/Console.java +++ b/src/java.base/share/classes/java/io/Console.java @@ -512,7 +512,7 @@ public sealed class Console implements Flushable permits ProxyingConsole { * Returns the {@link java.nio.charset.Charset Charset} object used for * the {@code Console}. *

- * The returned charset corresponds to the input and output source + * The returned charset is used for interpreting the input and output source * (e.g., keyboard and/or display) specified by the host environment or user, * which defaults to the one based on {@link System##stdout.encoding stdout.encoding}. * It may not necessarily be the same as the default charset returned from