Skip to content

Commit

Permalink
Core: Change SingleBufferInputStream .read signature to match super (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dchristle authored Dec 5, 2022
1 parent 574a55b commit 2ecce26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public int read() throws IOException {
}

@Override
public int read(byte[] bytes, int offset, int len) throws IOException {
public int read(byte[] bytes, int off, int len) throws IOException {
if (len == 0) {
return 0;
}
Expand All @@ -75,7 +75,7 @@ public int read(byte[] bytes, int offset, int len) throws IOException {
}

int bytesToRead = Math.min(buffer.remaining(), len);
buffer.get(bytes, offset, bytesToRead);
buffer.get(bytes, off, bytesToRead);

return bytesToRead;
}
Expand Down

0 comments on commit 2ecce26

Please sign in to comment.