Files
openide/plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/InconsistentCommentForJavaParameter.html
Alexey Belkov eeb5ac732d [kotlin] Inconsistent comment for Java parameter: improve message
GitOrigin-RevId: 53ea2239e2502341b87ce16d3ed20804830a3162
2022-07-19 12:27:26 +00:00

24 lines
532 B
HTML

<html>
<body>
Reports inconsistent parameter names for <b>Java</b> method calls specified in a comment block.
<p><b>Examples:</b></p>
<pre><code>
// Java
public class JavaService {
public void invoke(String command) {}
}
</code></pre>
<pre><code>
// Kotlin
fun main() {
JavaService().invoke(/* name = */ "fix")
}
</code></pre>
<p>The quick fix corrects the parameter name in the comment block:</p>
<pre><code>
fun main() {
JavaService().invoke(/* command = */ "fix")
}
</code></pre>
</body>
</html>