test/jdk/java/util/ArrayList/AddAll.java
changeset 48541 946e34c2dec9
parent 47216 71c04702a3d5
equal deleted inserted replaced
48540:221cf8307606 48541:946e34c2dec9
    26  * @bug     4715206
    26  * @bug     4715206
    27  * @summary Ensure that addAll method can cope with underestimate by size().
    27  * @summary Ensure that addAll method can cope with underestimate by size().
    28  * @author  Josh Bloch
    28  * @author  Josh Bloch
    29  */
    29  */
    30 
    30 
    31 import java.util.*;
    31 import java.util.ArrayList;
       
    32 import java.util.LinkedList;
       
    33 import java.util.List;
       
    34 import java.util.Map;
       
    35 import java.util.Vector;
       
    36 import java.util.WeakHashMap;
    32 
    37 
    33 public class AddAll {
    38 public class AddAll {
    34     public static void main(String[] args) {
    39     public static void main(String[] args) {
    35         for (int j = 0; j < 1; j++) {
    40         for (int j = 0; j < 1; j++) {
    36             Map m = new WeakHashMap(100000);
    41             Map m = new WeakHashMap(100000);