diff --git a/src/java.base/share/classes/java/io/CharArrayWriter.java b/src/java.base/share/classes/java/io/CharArrayWriter.java index f084d6245a8..8f165986c87 100644 --- a/src/java.base/share/classes/java/io/CharArrayWriter.java +++ b/src/java.base/share/classes/java/io/CharArrayWriter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2024, 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 @@ -150,7 +150,8 @@ public class CharArrayWriter extends Writer { * Appends the specified character sequence to this writer. * *
An invocation of this method of the form {@code out.append(csq)} - * behaves in exactly the same way as the invocation + * when {@code csq} is not {@code null}, behaves in exactly the same way + * as the invocation * * {@snippet lang=java : * out.write(csq.toString()) diff --git a/src/java.base/share/classes/java/io/PrintStream.java b/src/java.base/share/classes/java/io/PrintStream.java index 6807827b022..2a548660a98 100644 --- a/src/java.base/share/classes/java/io/PrintStream.java +++ b/src/java.base/share/classes/java/io/PrintStream.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2024, 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 @@ -1444,7 +1444,8 @@ public class PrintStream extends FilterOutputStream * Appends the specified character sequence to this output stream. * *
An invocation of this method of the form {@code out.append(csq)} - * behaves in exactly the same way as the invocation + * when {@code csq} is not {@code null}, behaves in exactly the same way + * as the invocation * * {@snippet lang=java : * out.print(csq.toString()) @@ -1452,7 +1453,7 @@ public class PrintStream extends FilterOutputStream * *
Depending on the specification of {@code toString} for the * character sequence {@code csq}, the entire sequence may not be - * appended. For instance, invoking then {@code toString} method of a + * appended. For instance, invoking the {@code toString} method of a * character buffer will return a subsequence whose content depends upon * the buffer's position and limit. * diff --git a/src/java.base/share/classes/java/io/PrintWriter.java b/src/java.base/share/classes/java/io/PrintWriter.java index cb7f611f147..2ed9315ba6a 100644 --- a/src/java.base/share/classes/java/io/PrintWriter.java +++ b/src/java.base/share/classes/java/io/PrintWriter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2024, 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 @@ -1287,7 +1287,8 @@ public class PrintWriter extends Writer { * Appends the specified character sequence to this writer. * *
An invocation of this method of the form {@code out.append(csq)} - * behaves in exactly the same way as the invocation + * when {@code csq} is not {@code null}, behaves in exactly the same way + * as the invocation * * {@snippet lang=java : * out.write(csq.toString()) diff --git a/src/java.base/share/classes/java/io/StringWriter.java b/src/java.base/share/classes/java/io/StringWriter.java index 9fdeb5550cb..ee58d741cc8 100644 --- a/src/java.base/share/classes/java/io/StringWriter.java +++ b/src/java.base/share/classes/java/io/StringWriter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2024, 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 @@ -126,7 +126,8 @@ public class StringWriter extends Writer { * Appends the specified character sequence to this writer. * *
An invocation of this method of the form {@code out.append(csq)} - * behaves in exactly the same way as the invocation + * when {@code csq} is not {@code null}, behaves in exactly the same way + * as the invocation * * {@snippet lang=java : * out.write(csq.toString()) diff --git a/src/java.base/share/classes/java/io/Writer.java b/src/java.base/share/classes/java/io/Writer.java index 4ec95d84a76..62fe6b053e5 100644 --- a/src/java.base/share/classes/java/io/Writer.java +++ b/src/java.base/share/classes/java/io/Writer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2024, 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 @@ -338,7 +338,8 @@ public abstract class Writer implements Appendable, Closeable, Flushable { * Appends the specified character sequence to this writer. * *
An invocation of this method of the form {@code out.append(csq)} - * behaves in exactly the same way as the invocation + * when {@code csq} is not {@code null}, behaves in exactly the same way + * as the invocation * * {@snippet lang=java : * out.write(csq.toString()) @@ -369,7 +370,6 @@ public abstract class Writer implements Appendable, Closeable, Flushable { /** * Appends a subsequence of the specified character sequence to this writer. - * {@code Appendable}. * *
An invocation of this method of the form * {@code out.append(csq, start, end)} when {@code csq}