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

Bug 543628

Summary: Formatter: The second brace of empty method declaration isn't put on same line
Product: [Eclipse Project] JDT Reporter: Emil Pedersen <3mille.prenom.nom>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 4.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Emil Pedersen CLA 2019-01-20 13:07:56 EST
On Eclipse 2019-03 M1 (which, btw, installed itself, I haven't enabled beta version updates or something), in the formatter settings (which, btw, are reset at every major update), I cannot find the option to put the method declaration final curly brace on the same line if the method is empty. Currently, it is put on a seperate line. The same happens for the other empty blocks.


-- Configuration Details --
Product: Eclipse IDE 4.11.0.20190117-1900 (org.eclipse.epp.package.java.product)Installed Features:
 org.eclipse.jdt 3.17.0.v20190109-1800
Versioning Plugin:
 org.eclipse.platform 4.11.0.v20190109-1800
Comment 1 Emil Pedersen CLA 2019-01-20 13:19:29 EST
Oops, found it under New Lines > Keep braced code on one line > change everything to 'If Empty'