[ https://issues.apache.org/jira/browse/NETBEANS-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16974237#comment-16974237 ]
Svatopluk Dedic commented on NETBEANS-2349: ------------------------------------------- All referenced PRs were closed, issues identified were filed separately. Can be this issue closed ? > 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 > Labels: pull-request-available > Fix For: 11.1 > > Time Spent: 4.5h > Remaining Estimate: 0h > > 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 (v8.3.4#803005) --------------------------------------------------------------------- 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