mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java: handle { after if/while statement condition and insert new block statement if needed:
complicated conditions case
This commit is contained in:
@@ -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('{');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user