Redundant value argument
Reports arguments that are equal to the default values of the corresponding parameters.
Example:
fun foo(x: Int, y: Int = 2) {}
fun bar() {
foo(1, 2)
}
After the quick-fix is applied:
fun bar() {
foo(1)
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Kotlin, @snapshot@ |
Last modified: 13 July 2023