8358809: Improve link to stdin.encoding from java.lang.IO

Reviewed-by: naoto
Backport-of: d024f58e61ec27f6c13fde5dadb95c31875815d6
This commit is contained in:
Stuart Marks 2025-06-07 00:56:45 +00:00
parent 80e066e733
commit c7df72ff0f

View File

@ -38,7 +38,7 @@ import java.nio.charset.StandardCharsets;
* <p>
* The {@link #readln()} and {@link #readln(String)} methods decode bytes read from
* {@code System.in} into characters. The charset used for decoding is specified by the
* {@link System#getProperties stdin.encoding} property. If this property is not present,
* {@link System##stdin.encoding stdin.encoding} property. If this property is not present,
* or if the charset it names cannot be loaded, then UTF-8 is used instead. Decoding
* always replaces malformed and unmappable byte sequences with the charset's default
* replacement string.