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 269353

Summary: Strange formatting
Product: java Reporter: Peter Nabbefeld <epdv>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Peter Nabbefeld 2016-12-15 09:35:27 UTC
Try to format this code snippet:

FutureTask<ObjectStore> future = new FutureTask<>(

        new Callable<ObjectStore>() {

            @Override
            public ObjectStore call() {
                return null;
            }
        }
);


After formatting it looks:

FutureTask<ObjectStore> future = new FutureTask<>(
        new Callable<ObjectStore>() {

    @Override
    public ObjectStore call() {
        return null;
    }
}
);

Which IMHO is strange. I'd expect:

FutureTask<ObjectStore> future = new FutureTask<>(

    new Callable<ObjectStore>() {

        @Override
        public ObjectStore call() {
            return null;
        }
    }
);