[ 
https://issues.apache.org/jira/browse/NETBEANS-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

vikas kumar prabhakar updated NETBEANS-2349:
--------------------------------------------
    Summary: Convert switch to switch expression  (was: Convert to switch 
expression)

> Convert switch to switch expression
> -----------------------------------
>
>                 Key: NETBEANS-2349
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2349
>             Project: NetBeans
>          Issue Type: Improvement
>            Reporter: vikas kumar prabhakar
>            Assignee: vikas kumar prabhakar
>            Priority: Major
>
> Convert old switch statement to switch expression in following case:
> Old code:  (Assign same variable in every case with one statement)
> int x = 5;
> String s = "foo";
> switch (x)
> { case 1: s = "bar";break; case 2: s = "baz";break; default: s = "zuq";break; 
> }
>  
> After fix:
> int x = 5;
> String s = switch (x)
> { case 1 -> "bar"; case 2 -> "baz"; default -> "zuq"; }
> ;



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

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

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

Reply via email to