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

Bug 479470

Summary: [Formatter] whitespace not generated correctly with argument annotations with parentheses
Product: [Eclipse Project] JDT Reporter: Oliver Kuster <oliver.kuster>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: mateusz.matela, oliver.kuster
Version: 4.5.1   
Target Milestone: 4.5 M3   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Oliver Kuster CLA 2015-10-09 18:23:43 EDT
Version: Mars.1 (4.5.1)
Build id: M20150904-0015

Steps to reproduce:

1 - enable white space formatting in (formatter profile) WhiteSpace > Declarations > Methods > before closing parenthesis.

2 - format code:
{code}
public ResponseEntity< ? > save2( @Valid( ) final Object object)
{
	return null;
}

public ResponseEntity< ? > save3( @Valid final Object object )
{
	return null;
}
{code}

Take a look at the whitespace in "object )".
Comment 1 Mateusz Matela CLA 2015-10-09 20:42:58 EDT

*** This bug has been marked as a duplicate of bug 471203 ***
Comment 2 Mateusz Matela CLA 2015-10-09 20:44:33 EDT

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