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

Summary: Formatting of nested annotations incorrect
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-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.