You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "vikas kumar prabhakar (JIRA)" <ji...@apache.org> on 2018/05/03 02:15:00 UTC

[jira] [Created] (NETBEANS-759) Fix Hints of "Split into declaration and assignment" not giving correct fix for compound declaration in switch-case block.

vikas kumar prabhakar created NETBEANS-759:
----------------------------------------------

             Summary: Fix Hints of "Split into declaration and assignment" not giving correct fix for compound declaration in switch-case block.
                 Key: NETBEANS-759
                 URL: https://issues.apache.org/jira/browse/NETBEANS-759
             Project: NetBeans
          Issue Type: Bug
            Reporter: vikas kumar prabhakar
            Assignee: vikas kumar prabhakar


Case 1: Before Fix
switch(i){
 case 1: 
 final int i = 10, k = 10; 
 }
After Fix
switch(i){
 case 1: 
 final int i, --> Errors
 i = 10;
k = 10; 
 }

Case 2:
Before Fix
switch(i){
 case 1: 
 final var v1 = 9, v2 = 10;
 }
After Fix
switch(i){
 case 1: 
 final var v1 = 9,    ----> Errors
 var v2 = 10;
 }



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

---------------------------------------------------------------------
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