Java9CollectionFactoryInspectionTest#HashMap10: expected code fixed

This commit is contained in:
Tagir Valeev
2017-03-01 12:54:11 +07:00
parent b5e80dfbd8
commit 157b31fdb3
@@ -4,6 +4,14 @@ import java.util.*;
public class Test {
public void test() {
Map<String, String> myMap;
myMap = Map.<String, String>of("a", "1", "b", "1", "c", "1", "d", "1", "e", "1", "f", "1", "g", "1", "h", "1", "i", "1", "j", "1");
myMap = Map.<String, String>of("a", "1", "b", "1", "c", "1",
// D follows
"d", "1", "e", /* this is also 1*/ "1", "f", "1", "g", "1", // G is important!
"h", "1", "i", "1",
/* Finally J */
/* why not putting comment inside the call expression? */"j", "1");
}
}