Community
Participate
Working Groups
When formatting Java code (shift + ctrl + f), empty javadoc lines will get trailing whitespace. This is not desirable. It e.g. generates loads of errors when using the checkstyle plugin. e.g. /** * Messages for the SWT Calendar. * * @author schraal */ (note the trailing space in the empty javadoc line).
Closing as INVALID since the editor removes trailing spaces on save now.
Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 1 Build id: 20110916-0149 Under "Java" - "Editor" - "Save Actions", enable: - Perform selected actions on save - Format source code - Format all lines - Additional actions - Remove trailing white spaces on all lines This results in empty spaces after empty javadoc lines. The end result is that if you use "format on save" action you cannot prevent the trailing spaces of appearing (perhaps because of the order the actions are executed). There seems to be discussion about the issue also in stackoverflow: http://stackoverflow.com/questions/7008340/eclipse-formatter-adds-space-in-empty-comment-lines Could this issue be reopened or should I create a new issue?
Created a distinct issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=360523