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.

Bug 254835 - Automatically generated Javadoc contains, in special case, unwanted empty lines
Summary: Automatically generated Javadoc contains, in special case, unwanted empty lines
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P4 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2015-08-29 06:02 UTC by stwr
Modified: 2016-11-10 10:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Attachments (424 bytes, text/x-java-source)
2015-08-29 06:02 UTC, stwr
Unwanted lines (10.02 KB, image/png)
2015-08-29 06:03 UTC, stwr

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-08-29 06:02:42 UTC
Created attachment 155732 [details]

Product Version: NetBeans IDE Dev (Build 201508280002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)

--Use Case--

1. Open attached
2. Analyze Javadoc for the class
3. Inside the Analyzer tab panel check the entire '' and hit 'Fix Selected'

--Actual Result--
Automatically generated Javadoc contains unwanted empty lines: 20 and 28 (please see the picture 'Unwanted lines').

My analyze showed that the issue does not occur when there are no empty lines between <editor-fold> tags and method declarations - at lines 15 and 18 in the original
The conclusion is that, whenever there is an empty line after the <editor-fold> tag, and before an entity which will get generated Javadoc, then this Javadoc will contain unwanted empty line. Please declare some public member, surround it with <editor-fold>, add an empty line and generate Javadoc by fixing selected problems.
The issue relates to both <editor-fold> tags - the opening one as well as closing one.
Comment 1 stwr 2015-08-29 06:03:09 UTC
Created attachment 155733 [details]
Unwanted lines
Comment 2 Jiri Prox 2015-10-15 09:01:03 UTC