You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Akhilesh Singh (Jira)" <ji...@apache.org> on 2019/12/27 06:19:00 UTC

[jira] [Created] (NETBEANS-3640) Show hints to convert new pattern matching code to legacy instance of code.

Akhilesh Singh created NETBEANS-3640:
----------------------------------------

             Summary: Show hints to convert new pattern matching code to legacy instance of code.
                 Key: NETBEANS-3640
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3640
             Project: NetBeans
          Issue Type: Improvement
          Components: java - Editor
         Environment: OpenJDK Runtime Environment 14-ea+27-1339
            Reporter: Akhilesh Singh


Issue to convert new pattern
if (obj instanceof String s) {
 // can use s here
}

to legacy code
if (obj instanceof String) {
 String s = (String) obj;
 // use s
}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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