mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -125,7 +125,7 @@ public class ByteArrayOutputStream extends OutputStream {
|
|||
* {@code len} is negative, or {@code len} is greater than
|
||||
* {@code b.length - off}
|
||||
*/
|
||||
public synchronized void write(byte b[], int off, int len) {
|
||||
public synchronized void write(byte[] b, int off, int len) {
|
||||
Objects.checkFromIndexSize(off, len, b.length);
|
||||
ensureCapacity(count + len);
|
||||
System.arraycopy(b, off, buf, count, len);
|
||||
|
@ -144,7 +144,7 @@ public class ByteArrayOutputStream extends OutputStream {
|
|||
* @throws NullPointerException if {@code b} is {@code null}.
|
||||
* @since 11
|
||||
*/
|
||||
public void writeBytes(byte b[]) {
|
||||
public void writeBytes(byte[] b) {
|
||||
write(b, 0, b.length);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue