You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Adrian Theodorescu (Jira)" <ji...@apache.org> on 2020/03/01 18:17:00 UTC

[jira] [Created] (NETBEANS-3930) Code formatting not working with default clause in a switch statement

Adrian Theodorescu created NETBEANS-3930:
--------------------------------------------

             Summary: Code formatting not working with default clause in a switch statement
                 Key: NETBEANS-3930
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3930
             Project: NetBeans
          Issue Type: Bug
          Components: cnd - Editor
    Affects Versions: 11.2
            Reporter: Adrian Theodorescu


Code formatting is not working if there's a default clause in a switch statement. Here's some sample code that reproduces this:
{code:java}
public class AutoFormat {
    public AutoFormat() {
        switch (1) {
            case 1: break;
            case 2: break;
            default: break;
        }
    }
}

{code}
 Once you remove the line with the default clause, formatting works properly again.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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