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 227929 - Java code formatting: After Class blank lines does not work after last class in file
Summary: Java code formatting: After Class blank lines does not work after last class ...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-26 04:11 UTC by MackSix
Modified: 2013-08-09 20:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-03-26 04:11:09 UTC
According to issue 180156 blank lines are supposed to be added and removed from the last class in a java file when there is nothing after it. This does not work in v7.3

Workaround: Add or remove desired blank lines manually.

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2013-03-26 04:31:41 UTC
Actually, I think this should be a separate setting so one can choose to add or remove blank lines at the end of a file separate from the After Class setting. I think I would rather have it not work at all than use the current After Class setting.
Comment 2 MackSix 2013-08-09 20:20:50 UTC
This seems to be working in NetBeans 7.3.1 and later.