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
|
@ -222,7 +222,7 @@ public class PipedInputStream extends InputStream {
|
|||
* {@link #connect(java.io.PipedOutputStream) unconnected},
|
||||
* closed,or if an I/O error occurs.
|
||||
*/
|
||||
synchronized void receive(byte b[], int off, int len) throws IOException {
|
||||
synchronized void receive(byte[] b, int off, int len) throws IOException {
|
||||
checkStateForReceive();
|
||||
writeSide = Thread.currentThread();
|
||||
int bytesToTransfer = len;
|
||||
|
@ -364,7 +364,7 @@ public class PipedInputStream extends InputStream {
|
|||
* {@link #connect(java.io.PipedOutputStream) unconnected},
|
||||
* closed, or if an I/O error occurs.
|
||||
*/
|
||||
public synchronized int read(byte b[], int off, int len) throws IOException {
|
||||
public synchronized int read(byte[] b, int off, int len) throws IOException {
|
||||
if (b == null) {
|
||||
throw new NullPointerException();
|
||||
} else if (off < 0 || len < 0 || len > b.length - off) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue