mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
[kotlin] Inconsistent comment for Java parameter: improve message
GitOrigin-RevId: 53ea2239e2502341b87ce16d3ed20804830a3162
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f958671787
commit
eeb5ac732d
@@ -2365,7 +2365,7 @@ kotlin.language.configurable=Kotlin
|
|||||||
kotlin.scripting.configurable=Kotlin Scripting
|
kotlin.scripting.configurable=Kotlin Scripting
|
||||||
hint.text.no.expression.found=No expression found
|
hint.text.no.expression.found=No expression found
|
||||||
progress.title.calculating.type=Calculating type\u2026
|
progress.title.calculating.type=Calculating type\u2026
|
||||||
intention.name.correct.parameter.name=Correct parameter name
|
intention.name.use.correct.parameter.name=Use correct parameter name
|
||||||
intention.add.import.alias.group.name=Add Import Alias
|
intention.add.import.alias.group.name=Add Import Alias
|
||||||
inspection.message.inconsistent.parameter.name.for.0=Inconsistent parameter name for ''{0}''
|
inspection.message.inconsistent.parameter.name.for.0=Inconsistent parameter name for ''{0}''
|
||||||
inspection.kotlin.catch.may.ignore.exception.display.name='catch' block may ignore exception
|
inspection.kotlin.catch.may.ignore.exception.display.name='catch' block may ignore exception
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
Reports inconsistent parameter name for <b>java</b> method specified in a comment block.
|
Reports inconsistent parameter names for <b>Java</b> method calls specified in a comment block.
|
||||||
<p><b>Examples:</b></p>
|
<p><b>Examples:</b></p>
|
||||||
<pre><code>
|
<pre><code>
|
||||||
// Java
|
// Java
|
||||||
@@ -14,7 +14,7 @@ Reports inconsistent parameter name for <b>java</b> method specified in a commen
|
|||||||
JavaService().invoke(/* name = */ "fix")
|
JavaService().invoke(/* name = */ "fix")
|
||||||
}
|
}
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p>The quick fix corrects parameter name in a comment block:</p>
|
<p>The quick fix corrects the parameter name in the comment block:</p>
|
||||||
<pre><code>
|
<pre><code>
|
||||||
fun main() {
|
fun main() {
|
||||||
JavaService().invoke(/* command = */ "fix")
|
JavaService().invoke(/* command = */ "fix")
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class InconsistentCommentForJavaParameterInspection: AbstractKotlinInspection()
|
|||||||
}
|
}
|
||||||
|
|
||||||
class CorrectNamesInCommentsToJavaCallArgumentsFix(private val commentedParameterName: String) : LocalQuickFix {
|
class CorrectNamesInCommentsToJavaCallArgumentsFix(private val commentedParameterName: String) : LocalQuickFix {
|
||||||
override fun getName() = KotlinBundle.message("intention.name.correct.parameter.name")
|
override fun getName() = KotlinBundle.message("intention.name.use.correct.parameter.name")
|
||||||
|
|
||||||
override fun getFamilyName() = name
|
override fun getFamilyName() = name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user