Community
Participate
Working Groups
Build Identifier: 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 Reproducible: Always Steps to Reproduce: As described above.
Will investigate once bug 303519 is fixed. This happens because by default the formatter adds one space after each line inside the javadoc comment. If this is annoying, you can consider turning off the javadoc comments formatting (in Preferences>Java>Code style>Formatter>Comments).
This is annoying but turning off the formatting of the comments would be more annoying (it does a very good job). Could be fixed by having the removal of trailing spaces to be performed LAST
This is actually getting more and more important with the increasing use of git, as trailing spaces are considered bad in git.
*** This bug has been marked as a duplicate of bug 251824 ***