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);
|
||||
if (in.peek() == -1) return;
|
||||
for (; ; ) {
|
||||
if (in.peek() == -1) return;
|
||||
try {
|
||||
update = new JavaBinUpdateRequestCodec().unmarshal(in, handler);
|
||||
} catch (EOFException e) {
|
||||
|
|
Loading…
Reference in New Issue