mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
SortContentAction: allow not only literal expressions to sort
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Sort content" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Main {
|
||||
void foo(int... vararg) {
|
||||
}
|
||||
|
||||
void test() {
|
||||
foo(1, (int) 1, 3, 4);
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Sort content" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Main {
|
||||
private void test() {
|
||||
new int[]{-1, 1, ((2)), 3, 4, -(-12)};
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,6 +4,6 @@ import java.util.*;
|
||||
|
||||
public class Main {
|
||||
private void test() {
|
||||
new String[]{"aaa", "bbb", "ccc"};
|
||||
new String[]{("aaa"), "bbb", (String) "ccc"};
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Sort content" "false"
|
||||
// "Sort content" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Sort content" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Main {
|
||||
private void test() {
|
||||
new int[] {1, <caret>4, 3, -(-12), -1, ((2))};
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,6 +4,6 @@ import java.util.*;
|
||||
|
||||
public class Main {
|
||||
private void test() {
|
||||
new String[] {"bbb", <caret>"aaa", "ccc"};
|
||||
new String[] {"bbb", <caret>("aaa"), (String)"ccc"};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user