Community
Participate
Working Groups
Add Clean Up functionality to convert between anonymous class or lambda expression and method reference forms. A solution could be to replace the "Use lambda where possible" option with "Use lambda or method reference where possible" and just always go the full way if possible. On the other hand, method references are not always shorter than lambda expressions (e.g. when the class name is long), so maybe users should have the freedom to chose among possible conversions.
We should have a solution for bug 499863, and we need a thorough analysis of the current implementation for other potential semantic changes before we can offer the current Quick Assists (and bug 458329) as Clean Ups.
Fabrice, can you contribute your lambda cleanup action which uses method reference via this bug?
We have this available as cleanup action.