Bug 92110

Summary: formatter - remove blank lines before closing }
Product: [Eclipse Project] JDT Reporter: Andrew Freeman <andy.w.freeman>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: gunnar, ian
Version: 3.1   
Target Milestone: 3.3 RC4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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?