[ https://issues.apache.org/jira/browse/NETBEANS-2516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
SARILLA MOHANARAO updated NETBEANS-2516: ---------------------------------------- Summary: Any modification to the TextBlocks - finalization (Based on JDK 15) (was: Warnings hints for Convert rule switch to Traditional switch) > Any modification to the TextBlocks - finalization (Based on JDK 15) > ------------------------------------------------------------------- > > Key: NETBEANS-2516 > URL: https://issues.apache.org/jira/browse/NETBEANS-2516 > Project: NetBeans > Issue Type: Improvement > Reporter: vikas kumar prabhakar > Assignee: SARILLA MOHANARAO > Priority: Major > Labels: pull-request-available > Time Spent: 40m > Remaining Estimate: 0h > > Implementation of warning hints for "Convert rule switch to Traditional > switch" > Use case: > Actual code: > public void test(int i){ > String result; > switch(i){ > case 1 -> System.out.println("One"); > case 2 -> System.out.println("Two"); > default -> System.out.println("Default"); > } > } > Warning Hints : "Convert to traditional switch" > After Fix: > public void test(int i){ > String result; > switch(i){ > case 1 : > System.out.println("One"); > break; > case 2 : > System.out.println("Two"); > break; > default: > System.out.println("Default"); > break; > } > } -- 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