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.
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
LambdaCanBeMethodCall
This inspection depends on the Java feature 'Lambda expressions', which is available since Java 8.
New in 2017.1
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |