Community
Participate
Working Groups
Created attachment 264293 [details] Clean up "Convert control statement bodies to block" deletes comments. Please see the attached screenshot. [clean up] Clean up "Convert control statement bodies to block" deletes comments. Please see the attached screenshot. Version: Oxygen (4.7) Build id: I20160915-0230
Reproduced with the following code snippet: public class X { public static void main(String[] args) { if (args.length > 0) { // comment zero does not get deleted if (args.length == 1) return; // comment one gets deleted else if (args.length == 2) return; // comment two gets deleted else return; } } } @Mateusz: could you please take a look?
Doesn't look like a formatter issue, rather possible duplicate of bug 250142. There's already a duplicate with almost identical summary: bug 491720. I'll leave it to Noopur to decide if this one can be fixed separately (like i.e. bug 488933) or closed as duplicate.
This is a duplicate of bug 250142 and can't be fixed based on bug 250142 comment #12. *** This bug has been marked as a duplicate of bug 250142 ***