mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
SortContentAction: fix \n placement in presence of comments: IDEA-199734
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// "Sort content" "true"
|
||||
|
||||
class X {
|
||||
public void x() {
|
||||
doTest("1 ",
|
||||
"T", "and", "between", "div", "eq", "false", "ge", "gt",
|
||||
"instanceof", "le", "lt", "matches", "mod", "ne", "new", "not", "null", "or",
|
||||
"true" //comment
|
||||
);
|
||||
}
|
||||
|
||||
private void doTest(String... s) {
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -16,7 +16,6 @@ public class Main {
|
||||
"foo" /*3*/ // 2
|
||||
// 5
|
||||
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Sort content" "true"
|
||||
|
||||
class X {
|
||||
public void x() {
|
||||
doTest("1 <caret>",
|
||||
"and", "between", "div", "eq", "false", "ge", "gt", "instanceof",
|
||||
"le", "lt", "matches", "mod", "ne", "new", "not", "null", "or", "true", //comment
|
||||
"T");
|
||||
}
|
||||
|
||||
private void doTest(String... s) {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user