Community
Participate
Working Groups
The Code Formatter has an option to "Insert new line after annotations" that applies to all annotations. This is a request for enhancement to allow this option to be specified independently for each possible annotation location: annotation type, constructor, field, local variable, method, package, parameter, and type. For example, the following may be a desired format: @Deprecated @SuppressWarnings("unused") public void setFoo(@Required String foo) { } The current implementation only allows one of the following: @Deprecated @SuppressWarnings("unused") public void setFoo(@Required String foo) { } -OR- @Deprecated @SuppressWarnings("unused") public void setFoo(@Required String foo) { } Neither of these is particularly attractive.
The line break after "String" in the first example of the current implementation is an artifact of Bugzilla.
This is too late to fix it for 3.3 since it would require a new code formatter option and this would be an API addition.
*** This bug has been marked as a duplicate of bug 122247 ***
The option has been split in 3: - annotation on members (this includes classes, fields, and methods) - annotation on local variables - annotation on parameters Please reopen if you really need more options (e.g. to distinguish between method and constructor). A use case describing this need would help. Verified for 3.4M5 using I20080205-0010