Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3639

Show hints to convert legacy written "instance of" checking code to new pattern matching

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • java - Editor
    • OpenJDK Runtime Environment 14-ea+27-1339

    Description

      Issue to convert legacy written code e.g
      if (obj instanceof String)

      { String s = (String) obj; // use s }

      to new pattern
      if (obj instanceof String s)

      { // can use s here }

      Attachments

        Activity

          People

            Unassigned Unassigned
            singh-akhilesh Akhilesh Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: