SOLR-9720: Fix for JSONWriterTest

This commit is contained in:
Shalin Shekhar Mangar 2016-11-03 20:21:13 +05:30
parent 213a2a1791
commit 78b768f2a4
1 changed files with 6 additions and 1 deletions

View File

@ -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() ) {
@ -635,6 +635,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 {