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 269277 - Formatting of nested annotations incorrect
Summary: Formatting of nested annotations incorrect
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-09 05:37 UTC by Peter Nabbefeld
Modified: 2016-12-09 05:37 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-09 05:37:49 UTC
This correctly formatted annotation:

@NamedQueries({
    @NamedQuery(name = "WorkflowSteps.findAll", query = "SELECT w FROM WorkflowSteps w"),
    @NamedQuery(name = "WorkflowSteps.findByStepid", query = "SELECT w FROM WorkflowSteps w WHERE w.workflowStepsPK.stepid = :stepid")
})

looks after formatting:

@NamedQueries({
    @NamedQuery(name = "WorkflowSteps.findAll", query = "SELECT w FROM WorkflowSteps w")
    ,
     @NamedQuery(name = "WorkflowSteps.findByStepid", query = "SELECT w FROM WorkflowSteps w WHERE w.workflowStepsPK.stepid = :stepid")
})

i.e. the comma is moved to a separate line.