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 268348

Summary: Ugly formatting due to wrapping of annotations
Product: java Reporter: terje7601
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description terje7601 2016-10-05 08:52:21 UTC
Suppose I have the following:

    @AttributeOverrides({
        @AttributeOverride(name = "fr", column = @Column(name = "a")),
        @AttributeOverride(name = "nl", column = @Column(name = "b")),
        @AttributeOverride(name = "de", column = @Column(name = "c")),
        @AttributeOverride(name = "en", column = @Column(name = "d"))
    })
    private Label label;

then NetBeans will format it as below:

    @AttributeOverrides({
        @AttributeOverride(name = "fr", column = @Column(name = "a"))
        ,
        @AttributeOverride(name = "nl", column = @Column(name = "b"))
        ,
        @AttributeOverride(name = "de", column = @Column(name = "c"))
        ,
        @AttributeOverride(name = "en", column = @Column(name = "d"))
    })
    private Label label;

which is much uglier than the original code.


Product Version: NetBeans IDE 8.2 (Build 201609300101)
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)