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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists