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
|
@ -202,7 +202,7 @@ public class PipedReader extends Reader {
|
|||
* Receives data into an array of characters. This method will
|
||||
* block until some input is available.
|
||||
*/
|
||||
synchronized void receive(char c[], int off, int len) throws IOException {
|
||||
synchronized void receive(char[] c, int off, int len) throws IOException {
|
||||
while (--len >= 0) {
|
||||
receive(c[off++]);
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ public class PipedReader extends Reader {
|
|||
* {@link #connect(java.io.PipedWriter) unconnected}, closed,
|
||||
* or an I/O error occurs.
|
||||
*/
|
||||
public synchronized int read(char cbuf[], int off, int len) throws IOException {
|
||||
public synchronized int read(char[] cbuf, int off, int len) throws IOException {
|
||||
if (!connected) {
|
||||
throw new IOException("Pipe not connected");
|
||||
} else if (closedByReader) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue