Files
openide/java/java-tests/testData/inspection/java9CollectionFactory/beforeHashMapRepeatingKey.java
Bas Leijdekkers 54975a31ba Improve inspection problem descriptor
GitOrigin-RevId: 8abf2188d180865951921d5ebfd9bd7bd33bfc6b
2021-03-18 08:40:12 +00:00

11 lines
265 B
Java

// "Replace with 'Map.of()' call" "false"
import java.util.*;
public class Test {
public void test() {
Map<String, String> myMap = new HashMap<>();
myMap.put("a", "b");
myMap.put("a", "c");
myMap = Collections.unmo<caret>difiableMap(myMap);
}
}