[
https://issues.apache.org/jira/browse/NETBEANS-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ARUNAVA SINHA updated NETBEANS-1675:
------------------------------------
Issue Type: Improvement (was: Bug)
> 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: Improvement
> Reporter: ARUNAVA SINHA
> Assignee: ARUNAVA SINHA
> Priority: Major
> Labels: NB-JDK12
>
> 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: [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