import java.util.*; class Test { void foo(){ Map<Integer, String> m<caret>ap = new HashMap<>(); Map<Integer, String> map1 = map; } }