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

Bug 479819

Summary: Formatter inserts extra space in annotations
Product: [Eclipse Project] JDT Reporter: Daniel Westerheide <daniel.westerheide>
Component: CoreAssignee: Mateusz Matela <mateusz.matela>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jorgecara88, mateusz.matela
Version: 4.5.1   
Target Milestone: 4.6 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Java Formatter Settings
none
SSCCE none

Description Daniel Westerheide CLA 2015-10-15 03:04:08 EDT
Created attachment 257272 [details]
Java Formatter Settings

When having an Annotation inside an Annotation, an extra space is added after the closing paranthesis of the inner Annotation.

Example:

	@Associates(type = LinkType.AGGREGATION, source = @Side(cardinality = "1"), target = @Side(cardinality = "0..*"))
	private List<Integer> list = new ArrayList<Integer>();

Will be formatted as

	@Associates(type = LinkType.AGGREGATION, source = @Side(cardinality = "1") , target = @Side(cardinality = "0..*") )
	private List<Integer> list = new ArrayList<Integer>();

This was perfectly working in Eclipse Kepler (Kepler Service Release 2).
Comment 1 Daniel Westerheide CLA 2015-10-15 03:06:51 EDT
Created attachment 257273 [details]
SSCCE

I've added a SSCCE.
Comment 2 Mateusz Matela CLA 2015-11-07 12:37:13 EST
*** Bug 481587 has been marked as a duplicate of this bug. ***
Comment 3 Mateusz Matela CLA 2015-11-07 14:10:09 EST

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