lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject lucene-solr:master: SOLR-9720: Fix for JSONWriterTest
Date Thu, 03 Nov 2016 14:51:14 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 213a2a179 -> 78b768f2a


SOLR-9720: Fix for JSONWriterTest


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/78b768f2
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/78b768f2
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/78b768f2

Branch: refs/heads/master
Commit: 78b768f2a4d62e191a3a8e1e9d19d6c5058b20e5
Parents: 213a2a1
Author: Shalin Shekhar Mangar <shalin@apache.org>
Authored: Thu Nov 3 20:21:13 2016 +0530
Committer: Shalin Shekhar Mangar <shalin@apache.org>
Committed: Thu Nov 3 20:21:13 2016 +0530

----------------------------------------------------------------------
 .../src/java/org/apache/solr/response/JSONResponseWriter.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/78b768f2/solr/core/src/java/org/apache/solr/response/JSONResponseWriter.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/response/JSONResponseWriter.java b/solr/core/src/java/org/apache/solr/response/JSONResponseWriter.java
index 209481ab..7090348 100644
--- a/solr/core/src/java/org/apache/solr/response/JSONResponseWriter.java
+++ b/solr/core/src/java/org/apache/solr/response/JSONResponseWriter.java
@@ -553,7 +553,7 @@ class JSONWriter extends TextResponseWriter {
     writeJsonIter(val);
   }
 
-  protected void writeJsonIter(Iterator val) throws IOException {
+  private void writeJsonIter(Iterator val) throws IOException {
     incLevel();
     boolean first=true;
     while( val.hasNext() ) {
@@ -636,6 +636,11 @@ class ArrayOfNamedValuePairJSONWriter extends JSONWriter {
   }
 
   @Override
+  public void writeArray(String name, List l) throws IOException {
+    writeArray(name, l.iterator());
+  }
+
+  @Override
   public void writeNamedList(String name, NamedList val) throws IOException {
 
     if (val instanceof SimpleOrderedMap) {


Mime
View raw message