test/jdk/java/util/TreeMap/SubMapClear.java
changeset 48541 946e34c2dec9
parent 47730 c7b5b1ce8145
equal deleted inserted replaced
48540:221cf8307606 48541:946e34c2dec9
    27  * @summary Submap clear tickled a bug in an optimization suggested by
    27  * @summary Submap clear tickled a bug in an optimization suggested by
    28  *          Prof. William Collins (Lafayette College)
    28  *          Prof. William Collins (Lafayette College)
    29  * @author  Josh Bloch
    29  * @author  Josh Bloch
    30  */
    30  */
    31 
    31 
    32 import java.util.*;
    32 import java.util.Set;
       
    33 import java.util.SortedSet;
       
    34 import java.util.TreeSet;
    33 
    35 
    34 public class SubMapClear {
    36 public class SubMapClear {
    35     public static void main(String[] args) {
    37     public static void main(String[] args) {
    36         SortedSet treeSet = new TreeSet();
    38         SortedSet treeSet = new TreeSet();
    37         for (int i = 1; i <=10; i++)
    39         for (int i = 1; i <=10; i++)