< prev index next >
src/java.base/share/classes/java/io/LineNumberReader.java
Print this page
*** 161,171 ****
* If an I/O error occurs
*
* @throws IndexOutOfBoundsException {@inheritDoc}
*/
@SuppressWarnings("fallthrough")
! public int read(char cbuf[], int off, int len) throws IOException {
synchronized (lock) {
int n = super.read(cbuf, off, len);
for (int i = off; i < off + n; i++) {
int c = cbuf[i];
--- 161,171 ----
* If an I/O error occurs
*
* @throws IndexOutOfBoundsException {@inheritDoc}
*/
@SuppressWarnings("fallthrough")
! public int read(char[] cbuf, int off, int len) throws IOException {
synchronized (lock) {
int n = super.read(cbuf, off, len);
for (int i = off; i < off + n; i++) {
int c = cbuf[i];
*** 210,220 ****
/** Maximum skip-buffer size */
private static final int maxSkipBufferSize = 8192;
/** Skip buffer, null until allocated */
! private char skipBuffer[] = null;
/**
* Skip characters.
*
* @param n
--- 210,220 ----
/** Maximum skip-buffer size */
private static final int maxSkipBufferSize = 8192;
/** Skip buffer, null until allocated */
! private char[] skipBuffer = null;
/**
* Skip characters.
*
* @param n
< prev index next >