package bpsm.edn.parser;

import java.util.Collections;
import java.util.LinkedList;

final class DefaultListFactory implements BuilderFactory {
    public CollectionBuilder builder() {
        return new CollectionBuilder() {
            LinkedList<Object> list = new LinkedList<Object>();
            public void add(Object o) {
                list.add(o);
            }
            public Object build() {
                return Collections.unmodifiableList(list);
            }
        };
    }
}
@@ -36,27 +36,25 @@
 va.util.
-Collections
+ArrayList
 ;%0Aimport
@@ -64,26 +64,27 @@
 va.util.
-LinkedList
+Collections
 ;%0A%0Afinal
@@ -231,22 +231,21 @@
         
-Linked
+Array
 List%3CObj
@@ -264,14 +264,13 @@
 new 
-Linked
+Array
 List

Use ArrayList rather than LinkedList as backing for immutable lists.