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.
If I have a comment that only takes up one line, there is no benefit to having an option to fold it. If I then collapse all folds, the one-line comment disappears, whereas it could as well have remained without damaging the readability of the code. I suggest removing the code folding icon for one-line code elements.
Changing subcomponent to "code folding"
+1 this is a very good idea. IMHO folded comments should always show the first line of the comment anyway because it doesn't take up any more space and would be very helpful. It would also solve this problem almost inherently. That is being discussed in this ticket: http://www.netbeans.org/issues/show_bug.cgi?id=157469
Created attachment 135294 [details] TimeUnit as example of unnecessary one-line fold See screenshot - TimeUnit as an example of unnecessary one-line fold
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 in 8.2 dev Product Version: NetBeans IDE Dev (Build 201607100002)