IntroduceVariableIntentionAction: stop at code block

To prevent escaping lambda/anonymous class
This commit is contained in:
Tagir Valeev
2018-05-10 13:26:15 +07:00
parent 130d61b7f5
commit c55d9483b2
2 changed files with 16 additions and 1 deletions
@@ -0,0 +1,11 @@
// "Introduce local variable" "false"
class a {
Runnable a() {
return new Runnable() {
public void run() {
if(2+<caret>2 == 5) {}
}
};
}
}