mirror of https://github.com/apache/lucene.git
SOLR-11879: moved the peek() call inside the for loop
This commit is contained in:
parent
c56d774eb6
commit
e2a5d46b9c
|
@ -103,8 +103,8 @@ public class JavabinLoader extends ContentStreamLoader {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
FastInputStream in = FastInputStream.wrap(stream);
|
FastInputStream in = FastInputStream.wrap(stream);
|
||||||
if (in.peek() == -1) return;
|
|
||||||
for (; ; ) {
|
for (; ; ) {
|
||||||
|
if (in.peek() == -1) return;
|
||||||
try {
|
try {
|
||||||
update = new JavaBinUpdateRequestCodec().unmarshal(in, handler);
|
update = new JavaBinUpdateRequestCodec().unmarshal(in, handler);
|
||||||
} catch (EOFException e) {
|
} catch (EOFException e) {
|
||||||
|
|
Loading…
Reference in New Issue