Inspectopedia Help

Inconsistent comment for Java parameter

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


// 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

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Kotlin, 241.16690-IJ

Last modified: 29 April 2024