Kotlin
Redundant creation of lambda or anonymous function
Info
New
Last modified: 03 December 2024Reports lambdas or anonymous functions that are created and used immediately.
- 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.
RedundantLambdaOrAnonymousFunction
fun test() {
({ println() })() // redundant
(fun() { println() })() // redundant
}
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Kotlin, 243.23126-IJ |
Thanks for your feedback!
Was this page helpful?