Skip to content

Commit

Permalink
SOLR-16512: Fix writing JSON objects in NoggitJSONWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
risdenk committed Nov 3, 2022
1 parent 2dc1108 commit 364cdc8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void write(Object o) {

private IteratorWriter.ItemWriter itemWriter() {
return new IteratorWriter.ItemWriter() {
private boolean first;
private boolean first = true;

@Override
public IteratorWriter.ItemWriter add(Object o) {
Expand All @@ -77,7 +77,7 @@ public IteratorWriter.ItemWriter add(Object o) {

private MapWriter.EntryWriter entryWriter() {
return new MapWriter.EntryWriter() {
private boolean first;
private boolean first = true;

@Override
public MapWriter.EntryWriter put(CharSequence k, Object v) {
Expand Down

0 comments on commit 364cdc8

Please sign in to comment.