mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
lambda completion: strip unnecessary parenthesis, generate parameter names as for override/implement (IDEA-121947)
(cherry picked from commit 273ae0329f28a5bec42847a8739faf8a815cab37)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
interface I<T> {
|
||||
void m(T t);
|
||||
}
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
I<String> i = s -> <caret>
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
interface I<T> {
|
||||
void m(T t);
|
||||
}
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
I<String> i = <caret>
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
interface I {
|
||||
void m(int x);
|
||||
}
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
I i = x -> <caret>
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
interface I {
|
||||
void m(int x);
|
||||
}
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
I i = <caret>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user