Back to Intellij Community

LambdaCanBeMethodCall

java/java-impl/resources/inspectionDescriptions/LambdaCanBeMethodCall.html

2025.3-rc-2205 B
Original Source

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