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 270304 - Performing Format action (Alt+Shift+F) on module-info.java adds empty line
Summary: Performing Format action (Alt+Shift+F) on module-info.java adds empty line
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-05 11:14 UTC by Martin Balin
Modified: 2017-08-27 02:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Balin 2017-04-05 11:14:16 UTC
NB 9 daily build 20170405, running on JDK9 b160.
Having following module-info.java 
"module modularjigsaw {
    requires java.base;
    requires jdk.jdeps;
    requires java.logging;
    requires java.se;
    uses java.lang.Readable;
}"
No empty line at top.
Then perform Format action on source. 
An empty line is added at top of file.
Comment 1 Dusan Balek 2017-08-25 15:06:42 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/c86e07ebf710
Comment 2 Quality Engineering 2017-08-27 02:49:53 UTC
Integrated into 'main-silver', will be available in build *201708270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c86e07ebf710
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #270304 - Performing Format action (Alt+Shift+F) on module-info.java adds empty line - fixed.