package org.testng.collections;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class Lists {

  public static <K> List<K> newArrayList() {
    return new ArrayList<K>();
  }

  public static <K> List<K> newArrayList(Collection<K> c) {
    return new ArrayList<K>(c);
  }

  public static <K> List<K> newArrayList(K... elements) {
    List<K> result = new ArrayList<K>();
    for (K e : elements) {
      result.add(e);
    }
    return result;
  }

  public static <K> List<K> newArrayList(int size) {
    return new ArrayList<K>(size);
  }
}

@@ -83,16 +83,46 @@
 ection;%0A
+import java.util.Collections;%0A
 import j
@@ -444,57 +444,45 @@
     
-for (K e : elements) %7B%0A      result.add(e);%0A    %7D
+Collections.addAll(result, elements);
 %0A   

Improve Lists#newArrayList()