mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
Java9CollectionFactoryInspection: try to preserve comments on their original places
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user