From e2a5d46b9cdc5686051f4de34cca176b50c11fb1 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Tue, 30 Jan 2018 18:25:48 +1100 Subject: [PATCH] SOLR-11879: moved the peek() call inside the for loop --- .../src/java/org/apache/solr/handler/loader/JavabinLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java b/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java index 4264476310f..f502a8ee526 100644 --- a/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java +++ b/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java @@ -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) {