Commits

Stepan Koltsov committed a50e1fc

fix double ArrayList creation in Tuple2List.arrayList()

thanks to Alexey Zakharov for bugreport

Comments (0)

Files changed (1)

src/main/java/ru/yandex/bolts/type/collection/Tuple2ListType.java

     }
 
     public <A, B> Tuple2List<A, B> arrayList() {
-        return cons(Cf.<Tuple2<A, B>>arrayList());
+        return wrap(Cf.<Tuple2<A, B>>arrayList());
     }
 
     public <A, B> Tuple2List<A, B> cons(Tuple2<A, B>... pairs) {