mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +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
|
||||
hint.text.no.expression.found=No expression found
|
||||
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
|
||||
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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<html>
|
||||
<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>
|
||||
<pre><code>
|
||||
// Java
|
||||
@@ -14,7 +14,7 @@ Reports inconsistent parameter name for <b>java</b> method specified in a commen
|
||||
JavaService().invoke(/* name = */ "fix")
|
||||
}
|
||||
</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>
|
||||
fun main() {
|
||||
JavaService().invoke(/* command = */ "fix")
|
||||
|
||||
@@ -45,7 +45,7 @@ class InconsistentCommentForJavaParameterInspection: AbstractKotlinInspection()
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user