mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
SortContentAction: preserve comments in corner case
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
// "Sort content" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Main {
|
||||
private static void foo(String a, String... vararg) {}
|
||||
|
||||
private void test() {
|
||||
foo(/*6*/"bar", // 1
|
||||
// 4
|
||||
"bar",
|
||||
|
||||
"baz"// 7
|
||||
// 8
|
||||
,
|
||||
"foo"/*3*/ // 2
|
||||
// 5
|
||||
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// "Sort content" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Main {
|
||||
private static void foo(String a, String... vararg) {}
|
||||
|
||||
private void test() {
|
||||
foo(/*6*/"bar", // 1
|
||||
// 4
|
||||
"foo"/*3*/, // 2
|
||||
// 5
|
||||
<caret>"bar",
|
||||
"baz"// 7
|
||||
// 8
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user