Bug 84504 - [Format] Extra empty line before class in default package when imports are specified
Summary: [Format] Extra empty line before class in default package when imports are sp...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-04 21:50 EST by Olivier Thomann CLA
Modified: 2005-02-16 12:55 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 2005-02-04 21:50:46 EST
Using latest, the formatter inserts an empty line at the beginning of the
compilation unit when the class is in the default package and the class has some
imports.
The option "Insert new line before import" should not add the new line if there
is no imports.
Comment 1 Olivier Thomann CLA 2005-02-04 23:27:28 EST
Fixed and released in HEAD.
Regression test added in FormatterRegressionTests.test542
Comment 2 David Audel CLA 2005-02-16 12:55:34 EST
Verified in I20050215-2300