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

9 lines
408 B
Java

// "Replace with 'Map.ofEntries()' call" "true"
import java.util.*;
public class Test {
public void test() {
Map<String, String> myMap;
myMap = Map.ofEntries(Map.entry("a", "1"), Map.entry("b", "1"), Map.entry("c", "1"), Map.entry("d", "1"), Map.entry("e", "1"), Map.entry("f", "1"), Map.entry("g", "1"), Map.entry("h", "1"), Map.entry("i", "1"), Map.entry("j", "1"), Map.entry("k", "1"));
}
}