IDEA-68003 Java Formatter: Correct formatting of anonymous classes at method call arguments

Corrected processing of multi-args method calls with single anonymous class argument
This commit is contained in:
Denis Zhdanov
2011-05-20 15:45:04 +04:00
parent d3c7943afc
commit ac43d5c0a0
2 changed files with 43 additions and 7 deletions
@@ -422,6 +422,18 @@ public class JavaFormatterIndentationTest extends AbstractJavaFormatterTest {
");"
);
doMethodTest(
"foo(new Runnable() {\n" +
"@Override\n" +
"public void run() {\n" +
"}" +
"}, 1, 2);",
"foo(new Runnable() {\n" +
" @Override\n" +
" public void run() {\n" +
" }\n" +
"}, 1, 2);"
);
}
public void testPackagePrivateAnnotation() {