ARUNAVA SINHA created NETBEANS-1675:
---------------------------------------

             Summary: Java Hint to fix error :different case kinds used in the 
switch in switch expressions
                 Key: NETBEANS-1675
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1675
             Project: NetBeans
          Issue Type: Bug
            Reporter: ARUNAVA SINHA
            Assignee: ARUNAVA SINHA


Code:

int i=10;
 final String val = 
 switch (i) 
 { 
 case 1 : break "one"; 
 case 2 -> "two"; 
 };

Error will be displayed in editor 'different case kinds used in the switch' 

Proposed fix:

int i=10;
 final String val = 
 switch (i) 
 { 
 case 1 -> "one"; 
 case 2 -> "two"; 
 };

 



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

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

Reply via email to