Bug 75488

Summary: Incorrect code formatting
Product: [Eclipse Project] JDT Reporter: Randy Hudson <hudsonr>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
format options none

Description Randy Hudson CLA 2004-10-01 15:00:44 EDT
Invoking "Format" resulted in:
if (TextRequest.REQ_INSERT == request.getType()
		|| TextRequest.REQ_BACKSPACE == request.getType()
		|| TextRequest.REQ_DELETE == request.getType()
		|| TextRequest.REQ_REMOVE_RANGE == request.getType())
		return getHost();

The return statement should not be double-indented.
Using 3.0.1.
Comment 1 Olivier Thomann CLA 2004-10-04 14:09:59 EDT
Could you please provide your formatting preferences?
Thanks.
Comment 2 Randy Hudson CLA 2004-10-04 15:19:47 EDT
Created attachment 14985 [details]
format options
Comment 3 Olivier Thomann CLA 2004-10-05 19:05:39 EDT
Fixed and released in HEAD.
Regression test added.
Comment 4 David Audel CLA 2004-11-02 10:25:33 EST
Verified for 3.1M3 with build I20041101.