mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8272626: Avoid C-style array declarations in java.*
Reviewed-by: dfuchs, alanb
This commit is contained in:
parent
e8f1219d6f
commit
30b0f820ce
54 changed files with 140 additions and 140 deletions
|
@ -561,7 +561,7 @@ public class PrintStream extends FilterOutputStream
|
|||
* @param len Number of bytes to write
|
||||
*/
|
||||
@Override
|
||||
public void write(byte buf[], int off, int len) {
|
||||
public void write(byte[] buf, int off, int len) {
|
||||
try {
|
||||
synchronized (this) {
|
||||
ensureOpen();
|
||||
|
@ -612,7 +612,7 @@ public class PrintStream extends FilterOutputStream
|
|||
* @since 14
|
||||
*/
|
||||
@Override
|
||||
public void write(byte buf[]) throws IOException {
|
||||
public void write(byte[] buf) throws IOException {
|
||||
this.write(buf, 0, buf.length);
|
||||
}
|
||||
|
||||
|
@ -634,7 +634,7 @@ public class PrintStream extends FilterOutputStream
|
|||
*
|
||||
* @since 14
|
||||
*/
|
||||
public void writeBytes(byte buf[]) {
|
||||
public void writeBytes(byte[] buf) {
|
||||
this.write(buf, 0, buf.length);
|
||||
}
|
||||
|
||||
|
@ -845,7 +845,7 @@ public class PrintStream extends FilterOutputStream
|
|||
*
|
||||
* @throws NullPointerException If {@code s} is {@code null}
|
||||
*/
|
||||
public void print(char s[]) {
|
||||
public void print(char[] s) {
|
||||
write(s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue