Bug 92110 - formatter - remove blank lines before closing }
Summary: formatter - remove blank lines before closing }
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.3 RC4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-20 12:52 EDT by Andrew Freeman CLA
Modified: 2014-04-15 15:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Freeman CLA 2005-04-20 12:52:57 EDT
I would like to have an option to remove blank lines before closing curly 
brackets.

For example:

public void hello() {
    System.out.println("Hello");



}

would become:

public void hello() {
    System.out.println("Hello");
}
Comment 1 Olivier Thomann CLA 2007-06-21 11:54:24 EDT
No action planned.
Comment 2 Ian Brandt CLA 2014-04-15 15:02:36 EDT
I would like to see an option for this as well.  I found this enhancement request as I was about to file a new one for removing blank lines between consecutive closing braces.  The idea being that a lone curly brace on its own line is sparse enough to serve as suitable negative space.

I can't immediately think of a scenario where removing blank lines between consecutive closing braces would yield different results from doing so before a single closing brace.

Expanding on Andrew's example, the following:

public class Greeter {

    public void hello() {
        System.out.println("Hello");



    }



}

would become:

public class Greeter {

    public void hello() {
        System.out.println("Hello");
    }
}

I find it hard to imagine how someone would see the former as well formatted code.

Is there a reason this was resolved as won't fix beyond there simply being no plan to work on it at the time?