You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Procházka (Jira)" <ji...@apache.org> on 2021/01/22 17:36:00 UTC
[jira] [Updated] (NETBEANS-2516) Warnings hints for Convert rule
switch to Traditional switch
[ https://issues.apache.org/jira/browse/NETBEANS-2516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomáš Procházka updated NETBEANS-2516:
--------------------------------------
Component/s: java - Hints
> Warnings hints for Convert rule switch to Traditional switch
> ------------------------------------------------------------
>
> Key: NETBEANS-2516
> URL: https://issues.apache.org/jira/browse/NETBEANS-2516
> Project: NetBeans
> Issue Type: Improvement
> Components: java - Hints
> 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-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