Community
Participate
Working Groups
I20080222-1622 Format this field declaration with block comment formatting disabled: private List/*<RefactoringParticipant>*/ fParticipants; => result: private List/*<RefactoringParticipant>*/fParticipants; => expected: Should leave as is, i.e. not remove the space between (type&comment) and field name.
(In reply to comment #0) Markus, as I understand it, when you disable the comment block formatting option, this means than anything INSIDE a block comment should NOT be formatted. In the sample you provided: private List/*<RefactoringParticipant>*/ fParticipants; the blank between the comment and the field name is OUTSIDE the block comment. If, for example, you had some blanks inside the block comment, they won't be formatted (with the comment block formatting option disabled). So I consider the formatter behaves OK and would close as invalid.
Sorry, I was not too clear. I agree that the block comment formatting option should not affect the whitespace outside of the block. I just mentioned that option to avoid confusion inside the comment, because enabling the option results in: private List/* <RefactoringParticipant> */fParticipants; In both cases, I think it would be better to leave a (single) space between field type and field name, regardless of the presence of a comment. AFAIK, the user cannot control that behavior (e.g. two spaces or a tab are always compacted into one space). It looks like the formatter currently preserves a space *before* the comment, e.g. private List /*<RefactoringParticipant>*/ fParticipants; is formatted to: private List /*<RefactoringParticipant>*/fParticipants; I think we don't need an option for this. Just preserve a single space after the comment (if any space was there before). I don't care about space before the comment here, but I guess keep preserving it there too would suit everyone's needs. We use these "poor man's generics" quite often to make code with collections readable.
(In reply to comment #2) Thanks for the details. I agree there should a way to preserve / insert a space after this comment
*** This bug has been marked as a duplicate of bug 169934 ***
Reopen to reassign...
closing with bug 169934