Hint: “Convert Explicit Type to Var” shouldn’t be reported for method references or lambda expressions #3466
Closed
1 of 3 tasks
Labels
good first issue
Java
[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
kind:bug
Bug report or fix
Milestone
Apache NetBeans version
Latest release
What happened
Convert Explicit Type to Var is reported for method references and lambda expressions, e.g.:
But it's invalid to replace the above with:
which results in the compile error:
How to reproduce
See above
Did this work correctly in an earlier version?
Operating System
Windows 10
JDK
OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+12)
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
Code of Conduct
The text was updated successfully, but these errors were encountered: