Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 522089

Summary: [formatter] Provide support for blank line before end of method
Product: [Eclipse Project] JDT Reporter: Archimedes Trajano <developer>
Component: CoreAssignee: Mateusz Matela <mateusz.matela>
Status: VERIFIED FIXED QA Contact: Mateusz Matela <mateusz.matela>
Severity: normal    
Priority: P3 CC: jarthana
Version: 4.8   
Target Milestone: 4.13 M3   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/146994
https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=d5ab917ba37be34f167c95a66058be3ba7693473
Whiteboard:
Bug Depends on:    
Bug Blocks: 550083    

Description Archimedes Trajano CLA 2017-09-09 13:21:54 EDT
Eclipse presently allows formatting so that there is a blank line guaranteed after the opening brace of a method.

Can we have the option to provide blank line before the ending brace method?

e.g.

void foo() { abc(); }

gets converted to

void foo() { 

  abc();

}

and add an edge test case for  

void foo() { }

to be

void foo() { 

}
Comment 1 Eclipse Genie CLA 2019-08-02 20:36:39 EDT
New Gerrit change created: https://git.eclipse.org/r/146994
Comment 3 Jay Arthanareeswaran CLA 2019-08-21 10:04:15 EDT
Verified for 4.13 M3 using build I20190820-1800