IDEA-179280 java9 - intention to use Map.ofEntries

This commit is contained in:
Tagir Valeev
2017-09-21 13:24:48 +07:00
parent 0b99eeb259
commit f533da27ef
6 changed files with 98 additions and 19 deletions
@@ -0,0 +1,9 @@
// "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"));
}
}