mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-94209 Completion in parameter list at array parameter position should insert braces after new Type
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
class Super {
|
||||
void foo(String[] params, int... indices) {
|
||||
foo(new String[<caret>], 0);
|
||||
foo(new String[]{<caret>}, 0);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,6 +4,6 @@ class MyException extends RuntimeException {
|
||||
|
||||
class XXX {
|
||||
{
|
||||
throw new MyException(new String[<caret>]);
|
||||
throw new MyException(new String[]{<caret>});
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,6 @@ class List<T> {}
|
||||
|
||||
class C {
|
||||
void foo () {
|
||||
List<? extends String>[] array = new List[<caret>];
|
||||
List<? extends String>[] array = new List[]{<caret>};
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,6 @@ class A {
|
||||
<T> void foo(T[] ts) {}
|
||||
|
||||
{
|
||||
foo(new Object[]);
|
||||
foo(new Object[]{<caret>});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user