CommentTracker: do not add a comment as a first child of PsiElement

Fixes IDEA-187526 "Add static import" with an intervening comment leads to exception
This commit is contained in:
Tagir Valeev
2018-03-02 16:18:17 +07:00
parent b1e2ed970a
commit aa89c3b6fa
5 changed files with 26 additions and 11 deletions

View File

@@ -14,7 +14,7 @@ class Foo {
void test3(String[] foos, String[] bars) {
System.out.println(//line comment
asList(foos)+":"+//line comment
asList(bars));
asList(foos)+":"+//line comment
asList(bars));
}
}