Community
Participate
Working Groups
Build ID: 3.4M4 Steps To Reproduce: 1. Open Preferences 2. Create your own format under Java->Code Style->Formatter 3. Click the WhiteSpace tab 4. Under Declarations->Annotations check the before opening parentheses option 5. Save and close 6. Now in the java editor create a statement which produces a warning for say deprecated 7. Choose Cmd+1 for Quick Fix and choose the "Add suppress warnings" autofix option 8. Annotation is added but the whitespace option you set is ignored More information:
Created attachment 124257 [details] Proposed fix With this patch ASTRewriteFormatter#formatNode() is able to format annotations.
Created attachment 124396 [details] JDTUI tests patch LocalCorrectionsQuickFixTest#testMissingAnnotationAttributes_bug179316() fails with the fix and should be corrected. This patch updates this test.
Released for 3.5M6. Released JDTCore patch and added test ASTRewritingTypeDeclTest#testSingleMemberAnnotation1()
Released JDT/UI test patch.
Verified for 3.5M6 using I20090310-0100.