--- jsr166/src/test/jtreg/util/TreeMap/SubMap.java 2010/09/01 20:12:39 1.2 +++ jsr166/src/test/jtreg/util/TreeMap/SubMap.java 2018/01/08 03:12:03 1.5 @@ -1,5 +1,5 @@ /* - * Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. + * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -16,9 +16,9 @@ * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. */ /* @@ -27,10 +27,14 @@ * @summary The firstKey and lastKey */ -import java.util.*; +import java.util.NoSuchElementException; +import java.util.SortedMap; +import java.util.SortedSet; +import java.util.TreeMap; +import java.util.TreeSet; public class SubMap { - public static void main(String args[]) throws Exception { + public static void main(String[] args) throws Exception { SortedMap m = new TreeMap(); m.put(new Integer(1), new Integer(1)); m.put(new Integer(2), new Integer(2));