OpenJDK / amber / amber
changeset 56641:61fff1345ee6
8219992: Correct the documentation of PrintWriter to refer System.lineSeparator
Reviewed-by: darcy, lancea, rriggs
author | bpb |
---|---|
date | Thu, 06 Jun 2019 08:11:25 -0700 |
parents | d65d3c37232c |
children | cc0f117f4405 |
files | src/java.base/share/classes/java/io/PrintWriter.java |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.base/share/classes/java/io/PrintWriter.java Wed Jun 05 01:42:11 2019 -0300 +++ b/src/java.base/share/classes/java/io/PrintWriter.java Thu Jun 06 08:11:25 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -704,9 +704,8 @@ /** * Terminates the current line by writing the line separator string. The - * line separator string is defined by the system property - * {@code line.separator}, and is not necessarily a single newline - * character ({@code '\n'}). + * line separator is {@link System#lineSeparator()} and is not necessarily + * a single newline character ({@code '\n'}). */ public void println() { newLine();