You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/06/10 05:14:53 UTC

[GitHub] [netbeans] vikasprabhakar opened a new pull request #1291: [NETBEANS-2516]Warnings hints for Convert rule switch to Traditional …

vikasprabhakar opened a new pull request #1291: [NETBEANS-2516]Warnings hints for Convert rule switch to Traditional …
URL: https://github.com/apache/netbeans/pull/1291
 
 
   …switch
   Implementation of warning hints for  "Convert rule switch to Traditional switch"
   
   Use case:
   
   Actual code:
   
   public void test(int i){
   String result;
   switch
   
   { 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
   
   { case 1 : System.out.println("One"); break; case 2 : System.out.println("Two"); break; default: System.out.println("Default"); break; }
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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