mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
IDEA-31554 "Complete Current Statement" does not format code on "else if" condition code block
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user