test/jdk/java/util/HashMap/ToString.java
changeset 48541 946e34c2dec9
parent 47730 c7b5b1ce8145
equal deleted inserted replaced
48540:221cf8307606 48541:946e34c2dec9
    26  * @bug 4189821
    26  * @bug 4189821
    27  * @summary HashMap's entry.toString threw a null pointer exc if the HashMap
    27  * @summary HashMap's entry.toString threw a null pointer exc if the HashMap
    28  *          contained null keys or values.
    28  *          contained null keys or values.
    29  */
    29  */
    30 
    30 
    31 import java.util.*;
    31 import java.util.HashMap;
       
    32 import java.util.Map;
    32 
    33 
    33 public class ToString {
    34 public class ToString {
    34     public static void main(String[] args) throws Exception {
    35     public static void main(String[] args) throws Exception {
    35         Map m = new HashMap();
    36         Map m = new HashMap();
    36         m.put(null, null);
    37         m.put(null, null);