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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists