Skip to content

Commit 805365c

Browse files
committed
Reflects review comments
1 parent 9000280 commit 805365c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/java.base/share/classes/java/lang/System.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ private System() {
147147
* corresponds to display output or another output destination
148148
* specified by the host environment or user. The encoding used
149149
* in the conversion from characters to bytes is equivalent to
150-
* {@link Console#charset()} if the {@code Console} exists,
151-
* <a href="#stdout.encoding">stdout.encoding</a> otherwise.
150+
* <a href="#stdout.encoding">stdout.encoding</a>.
152151
* <p>
153152
* For simple stand-alone Java applications, a typical way to write
154153
* a line of output data is:
@@ -168,7 +167,6 @@ private System() {
168167
* @see java.io.PrintStream#println(long)
169168
* @see java.io.PrintStream#println(java.lang.Object)
170169
* @see java.io.PrintStream#println(java.lang.String)
171-
* @see Console#charset()
172170
* @see <a href="#stdout.encoding">stdout.encoding</a>
173171
*/
174172
public static final PrintStream out = null;
@@ -788,7 +786,8 @@ public static native void arraycopy(Object src, int srcPos,
788786
* <td>Character encoding name derived from the host environment and/or
789787
* the user's settings. Setting this system property has no effect.</td></tr>
790788
* <tr><th scope="row">{@systemProperty stdout.encoding}</th>
791-
* <td>Character encoding name for {@link System#out System.out}.
789+
* <td>Character encoding name for {@link System#out System.out} and
790+
* {@link System#console() System.console()}.
792791
* The Java runtime can be started with the system property set to {@code UTF-8},
793792
* starting it with the property set to another value leads to undefined behavior.
794793
* <tr><th scope="row">{@systemProperty stderr.encoding}</th>

0 commit comments

Comments
 (0)