Java9CollectionFactoryInspection: try to preserve comments on their original places

This commit is contained in:
Tagir Valeev
2017-03-01 11:50:09 +07:00
parent 39c8f21ee0
commit 3f6a84d808
3 changed files with 85 additions and 9 deletions
@@ -7,13 +7,17 @@ public class Test {
myMap.put("a", "1");
myMap.put("b", "1");
myMap.put("c", "1");
// D follows
myMap.put("d", "1");
myMap.put("e", "1");
myMap.put("e", /* this is also 1*/ "1");
myMap.put("f", "1");
myMap.put("g", "1");
myMap.put("g", "1"); // G is important!
myMap.put("h", "1");
myMap.put("i", "1");
myMap.put("j", "1");
/* Finally J */
myMap./* why not putting comment inside the call expression? */put("j", "1");
myMap = Collections.unmodifia<caret>bleMap(myMap);
}
}