mirror of https://github.com/apache/lucene.git
SOLR-9720: Fix for JSONWriterTest
This commit is contained in:
parent
213a2a1791
commit
78b768f2a4
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue