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 - Strange formatting
Summary: Strange formatting
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-15 09:35 UTC by Peter Nabbefeld
Modified: 2016-12-15 09:35 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 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;
        }
    }
);