package foam.dao;

import java.util.*;

public class ListSink extends AbstractSink implements foam.lib.json.OutputJSON {
  private ArrayList data_ = new ArrayList();

  public List getData() {
    return data_;
  }

  public void put(foam.core.FObject obj, FlowControl fc) {
    data_.add(obj);
  }

  public void outputJSON(StringBuilder out, foam.lib.json.Outputter outputter) {
    Object[] data = getData().toArray();
    out.append("{\"class\":\"foam.dao.ArraySink\",\"a\":");
    outputter.output(out, data);
    out.append("}");
  }
}

@@ -272,21 +272,25 @@
 ) %7B%0A    
-data_
+getData()
 .add(obj

Use getData() instead of data_.,