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 209844

Summary: [formatting] Inner class not formatted correctly
Product: groovy Reporter: Martin Janicek <mjanicek>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 224640    

Description Martin Janicek 2012-03-21 11:11:31 UTC
Have an inner class declared and invoke format action. 

==> Actual state:

class Test {
    void testMehtod() {
        List list = [];
        list.add(new Runnable() {
                void run() {
                    return true;
                }
            });
    }
}

==> Expected state:

class Test {
    void testMehtod() {
        List list = [];
        list.add(new Runnable() {
            void run() {
                return true;
            }
        });
    }
}