lambda completion: strip unnecessary parenthesis, generate parameter names as for override/implement (IDEA-121947)

(cherry picked from commit 273ae0329f28a5bec42847a8739faf8a815cab37)
This commit is contained in:
Anna Kozlova
2014-03-12 10:20:57 +01:00
parent f738b512a3
commit 88c7d65679
7 changed files with 77 additions and 7 deletions
@@ -0,0 +1,9 @@
interface I<T> {
void m(T t);
}
class Test {
public static void main(String[] args) {
I<String> i = s -> <caret>
}
}
@@ -0,0 +1,9 @@
interface I<T> {
void m(T t);
}
class Test {
public static void main(String[] args) {
I<String> i = <caret>
}
}
@@ -0,0 +1,9 @@
interface I {
void m(int x);
}
class Test {
public static void main(String[] args) {
I i = x -> <caret>
}
}
@@ -0,0 +1,9 @@
interface I {
void m(int x);
}
class Test {
public static void main(String[] args) {
I i = <caret>
}
}