This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Using the soon-to-be-attached project, do the following to reproduce the bug: 1. Run it; 2. Open it in the new IDE, right-click FormattingBug and choose Show formatting bug when removing comments. There is an extra blank line on top of the annotation that should not be there. This might seem a small bug, but it is irritating and generates unnecessary diff. If while it is being evaluated, someone could post the code to reformat the section between the beginning of the file and before the annotation so that the white space can be removed, I would appreciate it. Product Version = NetBeans IDE Dev (Build 100525-68bc5456cdbc) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.6.0_19 Runtime = Java HotSpot(TM) Client VM 16.2-b04
Created attachment 99509 [details] test case
Bug prior to 7.0, not touched for the last 2 years --> P4.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
Still valid, 6 years after :-(