Skip to content

Commit 319a540

Browse files
author
Gary Gregory
committed
Reuse constant.
1 parent 31cc89e commit 319a540

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/io/input/ReadAheadInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public int read() throws IOException {
244244
return activeBuffer.get() & 0xFF;
245245
}
246246
final byte[] oneByteArray = oneByte.get();
247-
return read(oneByteArray, 0, 1) == EOF ? -1 : oneByteArray[0] & 0xFF;
247+
return read(oneByteArray, 0, 1) == EOF ? EOF : oneByteArray[0] & 0xFF;
248248
}
249249

250250
@Override

0 commit comments

Comments
 (0)