Bug 52851

Summary: Space before else should be removed in some cases
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M8   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2004-02-23 13:44:58 EST
Using M7, formatting this code should remove the space in front of the else
keyword if the option to insert a space after closing brace in block is selected.
class Foo {
	void m1(boolean b) {
		if (b) {
			System.out.println();
		} else {
			System.out.println();
		}
	}
}
Comment 1 Olivier Thomann CLA 2004-02-23 13:47:15 EST
Fixed and released in HEAD.
Regression test added.
Comment 2 Frederic Fusier CLA 2004-03-24 13:38:21 EST
Verified for 3.0 using build I200403240800.