8308016: Use snippets in java.io package

Reviewed-by: rriggs
This commit is contained in:
Brian Burkhalter 2023-05-23 16:00:40 +00:00
parent e9320f31dc
commit 710453c676
20 changed files with 152 additions and 132 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2023, 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
@ -340,8 +340,9 @@ public abstract class Writer implements Appendable, Closeable, Flushable {
* <p> An invocation of this method of the form {@code out.append(csq)}
* behaves in exactly the same way as the invocation
*
* <pre>
* out.write(csq.toString()) </pre>
* {@snippet lang=java :
* out.write(csq.toString())
* }
*
* <p> Depending on the specification of {@code toString} for the
* character sequence {@code csq}, the entire sequence may not be
@ -375,9 +376,9 @@ public abstract class Writer implements Appendable, Closeable, Flushable {
* is not {@code null} behaves in exactly the
* same way as the invocation
*
* <pre>{@code
* {@snippet lang=java :
* out.write(csq.subSequence(start, end).toString())
* }</pre>
* }
*
* @param csq
* The character sequence from which a subsequence will be
@ -415,8 +416,9 @@ public abstract class Writer implements Appendable, Closeable, Flushable {
* <p> An invocation of this method of the form {@code out.append(c)}
* behaves in exactly the same way as the invocation
*
* <pre>
* out.write(c) </pre>
* {@snippet lang=java :
* out.write(c)
* }
*
* @param c
* The 16-bit character to append