IDEA-31554 "Complete Current Statement" does not format code on "else if" condition code block

This commit is contained in:
peter
2015-07-09 20:49:00 +02:00
parent 75f04d0383
commit 8cbbf3648b
4 changed files with 33 additions and 0 deletions
@@ -0,0 +1,9 @@
public class Test {
public void foo(int x) {
if (false) {
return;
} else if (tr<caret>ue) {
}
}
}
@@ -0,0 +1,9 @@
public class Test {
public void foo(int x) {
if (false) {
return;
} else if (true) {
<caret>
}
}
}
@@ -127,6 +127,8 @@ public class CompleteStatementTest extends EditorActionTestCase {
public void testCompleteElseIf() throws Exception { doTest(); }
public void testReformatElseIf() { doTest(); }
public void testCompleteStringLiteral() throws Exception {
doTest();
}