mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[java formatter] respect SPACE_BEFORE_COMMA [IDEA-150466]
This commit is contained in:
@@ -673,5 +673,16 @@ public class JavaFormatterSpaceTest extends AbstractJavaFormatterTest {
|
||||
" @Annotation THREE\n" +
|
||||
"}");
|
||||
}
|
||||
|
||||
public void testSpaceBeforeComma() {
|
||||
getSettings().SPACE_BEFORE_COMMA = true;
|
||||
doClassTest(
|
||||
"public void main(String[] args, String xxx) {\n" +
|
||||
" foo(100, 200);\n" +
|
||||
"}",
|
||||
"public void main(String[] args , String xxx) {\n" +
|
||||
" foo(100 , 200);\n" +
|
||||
"}");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user