Skip to content

Commit 9b75756

Browse files
committed
minor refactor: fix read(char[], int, int) loop bound in LineColumnReader (secondary fix)
1 parent 0c10e73 commit 9b75756

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/groovy/io/LineColumnReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public long skip(long toSkip) throws IOException {
192192
*/
193193
@Override
194194
public int read(char[] chars) throws IOException {
195-
return read(chars, 0, chars.length - 1);
195+
return read(chars, 0, chars.length);
196196
}
197197

198198
/**

0 commit comments

Comments
 (0)