smart completion in lambda body: decision to insert semicolon based on lambda context and body type (IDEA-91083)

This commit is contained in:
Anna Kozlova
2012-09-06 14:59:46 +04:00
parent 1703f863b8
commit 51e044a8f5
8 changed files with 60 additions and 4 deletions
@@ -0,0 +1,5 @@
class Test {
public void foo() {
Runnable r = () -> {notify();};
}
}
@@ -0,0 +1,5 @@
class Test {
public void foo() {
Runnable r = () -> {<caret>};
}
}
@@ -0,0 +1,5 @@
class Test {
public void foo() {
new Thread(() -> notify());
}
}
@@ -0,0 +1,5 @@
class Test {
public void foo() {
new Thread(() -> <caret>);
}
}
@@ -0,0 +1,5 @@
class Test {
public void foo() {
Runnable r = () -> notify();
}
}
@@ -0,0 +1,5 @@
class Test {
public void foo() {
Runnable r = () -> <caret>
}
}