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

Hint to replace explicit type of variable with var should not be a warning.

    XMLWordPrintableJSON

    Details

      Description

      A new hint has been added to replace explicit types with 'var', and vice versa, for JDK 10. This was described in NETBEANS-479.

      However the Hint is a Warning (lightbulb+yellow triangle) and is shown on every line that could be changed. This is not good because the hint is 'two-way' so even if you accept the fix it shows another warning suggesting to change it back. It should be just a lightbulb like the diamond inference hint, which only appears on the current line.

        Attachments

        1. N-999.png
          5 kB
          Peter Hull

          Activity

            People

            • Assignee:
              rtaneja Reema Taneja
              Reporter:
              peterhull90 Peter Hull
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h