mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
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:
@@ -0,0 +1,8 @@
|
||||
class X {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("took " + (System//simple end comment
|
||||
.currentTi<caret>meMillis() - 1) + "ms");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import static java.lang.System.currentTimeMillis;
|
||||
|
||||
class X {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("took " + (//simple end comment
|
||||
currentTimeMillis() - 1) + "ms");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user