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 239408 - Formatting of contructor adds blank line
Summary: Formatting of contructor adds blank line
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-12 11:46 UTC by peathal
Modified: 2014-01-03 17:22 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 peathal 2013-12-12 11:46:33 UTC
I have the following formatting:
https://github.com/graphhopper/graphhopper/blob/master/pom.xml#L29

Now I have this "within constructor code":

    public FinishInstruction( final double lat, final double lon )
    {
        super(FINISH, "", DISTANCES, TIMES, new PointList()
        {   
            {
                add(lat, lon);
            }
        });
    }

When I format this source it adds a blank line:

    public FinishInstruction( final double lat, final double lon )
    {
        super(FINISH, "", DISTANCES, TIMES, new PointList()
        {
            
            {
                add(lat, lon);
            }
        });
    }

Looks similar to https://netbeans.org/bugzilla/show_bug.cgi?id=7732
Comment 1 Dusan Balek 2014-01-03 17:22:58 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/4fdc588cd074