mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-79806 Apply aligning of chained method calls in columns to fields
This commit is contained in:
+12
@@ -36,6 +36,18 @@ public class JavaFormatterAlignmentTest extends AbstractJavaFormatterTest {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testMethodAndChainedField() throws Exception {
|
||||
// Inspired by IDEA-79806
|
||||
|
||||
getSettings().ALIGN_MULTILINE_CHAINED_METHODS = true;
|
||||
doMethodTest(
|
||||
"Holder.INSTANCE\n" +
|
||||
" .foo();",
|
||||
"Holder.INSTANCE\n" +
|
||||
" .foo();"
|
||||
);
|
||||
}
|
||||
|
||||
public void testMultipleMethodAnnotationsCommentedInTheMiddle() throws Exception {
|
||||
getSettings().BLANK_LINES_AFTER_CLASS_HEADER = 1;
|
||||
getSettings().getRootSettings().getIndentOptions(StdFileTypes.JAVA).INDENT_SIZE = 4;
|
||||
|
||||
Reference in New Issue
Block a user