Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missed IOException to Reader.read(char[] buf) and Reader.read(c… #9933

Merged
merged 3 commits into from
Jul 30, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions user/super/com/google/gwt/emul/java/io/Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ public int read() throws IOException {
/**
* Attempts to fill {@code buf} with characters up to the size of the array.
*/
public int read(char[] buf) {
public int read(char[] buf) throws IOException {
return read(buf, 0, buf.length);
}

/**
* Attempts to fill {@code buf} with up to {@code len} characters. Characters
* will be stored in {@code buf} starting at index {@code off}.
*/
public abstract int read(char[] buf, int off, int len);
public abstract int read(char[] buf, int off, int len) throws IOException;

/**
* Returns whether the stream is ready for reading characters.
Expand Down
Loading