mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8258444: Clean up specifications of java.io.Reader.read(char[],int,int) in subclass overrides
Reviewed-by: alanb, rriggs
This commit is contained in:
parent
7d4f60b16b
commit
5a9b70103c
9 changed files with 101 additions and 115 deletions
|
@ -253,10 +253,10 @@ public abstract class Reader implements Readable, Closeable {
|
|||
* @return The number of characters read, or -1 if the end of the
|
||||
* stream has been reached
|
||||
*
|
||||
* @throws IOException If an I/O error occurs
|
||||
* @throws IndexOutOfBoundsException
|
||||
* If {@code off} is negative, or {@code len} is negative,
|
||||
* or {@code len} is greater than {@code cbuf.length - off}
|
||||
* @throws IOException If an I/O error occurs
|
||||
*/
|
||||
public abstract int read(char cbuf[], int off, int len) throws IOException;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue