8272626: Avoid C-style array declarations in java.*

Reviewed-by: dfuchs, alanb
This commit is contained in:
Claes Redestad 2021-08-18 10:47:03 +00:00
parent e8f1219d6f
commit 30b0f820ce
54 changed files with 140 additions and 140 deletions

View file

@ -209,7 +209,7 @@ public abstract class Writer implements Appendable, Closeable, Flushable {
* @throws IOException
* If an I/O error occurs
*/
public void write(char cbuf[]) throws IOException {
public void write(char[] cbuf) throws IOException {
write(cbuf, 0, cbuf.length);
}
@ -234,7 +234,7 @@ public abstract class Writer implements Appendable, Closeable, Flushable {
* @throws IOException
* If an I/O error occurs
*/
public abstract void write(char cbuf[], int off, int len) throws IOException;
public abstract void write(char[] cbuf, int off, int len) throws IOException;
/**
* Writes a string.