Lambda can be replaced with method call
Reports lambda expressions which can be replaced with a call to a JDK method.
For example, an expression x -> x
of type Function<T, T>
can be replaced with a Function.identity()
call.
New in 2017.1
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023