8328183: Minor mistakes in docs of PrintStream.append()

Reviewed-by: iris, naoto
This commit is contained in:
Brian Burkhalter 2024-04-05 16:08:16 +00:00
parent 4a11db8b60
commit 040c93565c
5 changed files with 16 additions and 12 deletions

View file

@ -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.
*
* <p> 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())

View file

@ -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.
*
* <p> 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
*
* <p> 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.
*

View file

@ -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.
*
* <p> 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())

View file

@ -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.
*
* <p> 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())

View file

@ -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.
*
* <p> 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}.
*
* <p> An invocation of this method of the form
* {@code out.append(csq, start, end)} when {@code csq}