Inspectopedia Help

Inconsistent comment for Java parameter

Reports inconsistent parameter names for Java method calls specified in a comment block.

Examples:

// Java public class JavaService { public void invoke(String command) {} }
// Kotlin fun main() { JavaService().invoke(/* name = */ "fix") }

The quick fix corrects the parameter name in the comment block:

fun main() { JavaService().invoke(/* command = */ "fix") }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Kotlin, @snapshot@

Last modified: 13 July 2023