Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 483147

Summary: Formatting rules cause extra space to be added after double bracket
Product: [Eclipse Project] JDT Reporter: Scott Murray <scott.murray2>
Component: CoreAssignee: Mateusz Matela <mateusz.matela>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: mateusz.matela
Version: 4.5.1   
Target Milestone: 4.6 M4   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
maven project to import
none
Formatter XML none

Description Scott Murray CLA 2015-11-27 02:41:24 EST
Created attachment 258303 [details]
maven project to import

After formmatting MARRs 3.5.1 changes this:

@Table(name = FormattingBug.NAME, uniqueConstraints = @UniqueConstraint(columnNames = { "PRODUCT_TYPE_ID",
        "FROM_FACT_TYPE_ID" }))

to this:
@Table(name = FormattingBug.NAME, uniqueConstraints = @UniqueConstraint(columnNames = { "PRODUCT_TYPE_ID",
        "FROM_FACT_TYPE_ID" }) )

In Luna with the same formatting rules the extra space was NOT added. Our CheckStyle rules don't like the space before the bracket.

Attached formatting rules and sample project.

The formatter specifically has the 'before closing parenthesis' unset for annotations.
Comment 1 Scott Murray CLA 2015-11-27 02:42:04 EST
Created attachment 258304 [details]
Formatter XML
Comment 2 Mateusz Matela CLA 2015-11-29 16:43:29 EST

*** This bug has been marked as a duplicate of bug 471203 ***