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 142597

Summary: Not enough options for braces placement.
Product: java Reporter: Milos Kleint <mkleint>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Milos Kleint 2008-08-01 16:07:37 UTC
current dev build.

There's only possible to define braces position for Class Declaration, Method declaration and the there's a generic
category Other.
That's not enough, when I tried to reproduce apache maven coding style, it requires to place braces on new line for if,
while, else, for statements so I have to check "new line" at the "Others" field.,
however that results in following code when declaring arrays.

    private static final String[] DEFAULT_INCLUDES =
    {
        "**/*.properties"
    };

Ideally this would stay on one line. That's not currently possible.
Comment 1 Jan Becicka 2008-11-14 11:06:42 UTC
Will resolve later
Comment 2 Quality Engineering 2009-11-02 11:00:55 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX