mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-62715 Automatic indentation doesn't work if you don't use braces
The test checks various types of comments now
This commit is contained in:
+4
-2
@@ -296,13 +296,15 @@ public class JavaFormatterIndentationTest extends AbstractJavaFormatterTest {
|
||||
|
||||
String precededByMultiLineComment =
|
||||
"/*\n" +
|
||||
" * test\n" +
|
||||
" */\n" +
|
||||
"test\n" +
|
||||
"*/\n" +
|
||||
"public int getFoo()\n" +
|
||||
" {\n" +
|
||||
" return foo;\n" +
|
||||
" }";
|
||||
|
||||
doClassTest(precededByJavadoc, precededByJavadoc);
|
||||
doClassTest(precededBySingleLineComment, precededBySingleLineComment);
|
||||
doClassTest(precededByMultiLineComment, precededByMultiLineComment);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user