You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Chris Carver (JIRA)" <ji...@apache.org> on 2018/05/15 19:08:00 UTC

[jira] [Created] (NETBEANS-795) Incorrect auto formatting for nested Java annotations

Chris Carver created NETBEANS-795:
-------------------------------------

             Summary: Incorrect auto formatting for nested Java annotations
                 Key: NETBEANS-795
                 URL: https://issues.apache.org/jira/browse/NETBEANS-795
             Project: NetBeans
          Issue Type: Bug
          Components: editor - Completion &amp; Templates, editor - Formatting &amp; Indentation
    Affects Versions: 8.2
         Environment: Windows, Ubuntu
            Reporter: Chris Carver


When On Save auto formatting is enabled for Java, nested Java annotations with parameters are incorrectly formatted. An unnecessary newline is given to comma's.

For example:
{code:java}
@JsonSubTypes({ 
    @JsonSubTypes.Type(value = Test.class, name = "Test"), 
    @JsonSubTypes.Type(value = Test1.class, name = "Test1"), 
    @JsonSubTypes.Type(value = Test2.class, name = "Test2"),     
    @JsonSubTypes.Type(value = Test3.class, name = "Test3") 
})
{code}
Will save as:
{code:java}
@JsonSubTypes({ 
    @JsonSubTypes.Type(value = Test.class, name = "Test")
    , 
    @JsonSubTypes.Type(value = Test1.class, name = "Test1")
    , 
    @JsonSubTypes.Type(value = Test2.class, name = "Test2")
    ,     
    @JsonSubTypes.Type(value = Test3.class, name = "Test3") 
})
{code}
In the old NetBeans bug tracker, it appears [the issue was marked as resolved|https://netbeans.org/bugzilla/show_bug.cgi?id=268247] in May of 2017 but it is stillĀ presentĀ in the latest 8.2 release.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists