mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
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:
+12
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user