Bug 52851 - Space before else should be removed in some cases
Summary: Space before else should be removed in some cases
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-23 13:44 EST by Olivier Thomann CLA
Modified: 2004-03-24 13:38 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.