Community
Participate
Working Groups
Currently the formatter only has 2 options for newlines in annotations, one for a newline in an empty tagging annotation, and one for a newline after use of an annotation. This leads to a scenario where a method can be formatted like this: @Deprecated @SuppressWarnings("unchecked") public void setFoo(@NotNull Foo foo) { this.foo = foo; } with the @NotNull broken away from its parameter, or like this: @Deprecated @SuppressWarnings("unchecked") public void setFoo(@NotNull Foo foo) { this.foo = foo; } All smashed together. Neither is very pretty. It would be better to be able to specify Method annotations to have a newline, and Parameter annotations not to have a newline, to stay with their parameters. Since different annotations are used in different areas of code, this seems logical.
*** This bug has been marked as a duplicate of 122247 ***
Verified for 3.4M5 using I20080204-0010 build.