java: handle { after if/while statement condition and insert new block statement if needed:

complicated conditions case
This commit is contained in:
Sergey Ignatov
2014-08-29 15:02:24 +04:00
parent 2b2f09a376
commit cf262822d4
6 changed files with 33 additions and 2 deletions
@@ -0,0 +1,5 @@
class C {
boolean f() {
if (f() && new Object(){<caret>)
}
}
@@ -0,0 +1,5 @@
class C {
boolean f() {
if (f() && new Object()<caret>)
}
}
@@ -0,0 +1,5 @@
class C {
boolean f() {
if (new Object(){<caret>)
}
}
@@ -0,0 +1,5 @@
class C {
boolean f() {
if (new Object()<caret>)
}
}
@@ -78,6 +78,14 @@ public class JavaTypingTest extends LightPlatformCodeInsightFixtureTestCase {
doTest('{');
}
public void testFixIfByBraceNewObject() {
doTest('{');
}
public void testFixIfByBraceCompositeCondition() {
doTest('{');
}
public void testFixWhileByBrace() {
doTest('{');
}