mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin-dfa] Move inspection.data.flow.warn.when.reading.a.value.guaranteed.to.be.constant to JavaAnalysisBundle
Preparatory step for KTIJ-28908 Convert "Constant conditions" inspection to K2 GitOrigin-RevId: 68798782d260f8245947423efd936ae82bde841c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d7501472cd
commit
d89c17fc59
@@ -623,3 +623,4 @@ chooser.popup.title.select.class.to.move.members.to=Select Target Class
|
||||
intention.family.name.move.members.to=Move members to {0}
|
||||
inspection.name.can.be.replaced.with.long.hashcode=Standard 'hashCode()' method can be used
|
||||
inspection.depends.on.the.java.feature=This inspection depends on the Java feature ''{0}'' which is available since Java {1}.
|
||||
inspection.data.flow.warn.when.reading.a.value.guaranteed.to.be.constant=Warn when constant is stored in variable
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public final class ConstantValueInspection extends AbstractBaseJavaLocalInspecti
|
||||
return pane(
|
||||
checkbox("DONT_REPORT_TRUE_ASSERT_STATEMENTS", message("inspection.data.flow.true.asserts.option")),
|
||||
checkbox("IGNORE_ASSERT_STATEMENTS", message("inspection.data.flow.ignore.assert.statements")),
|
||||
checkbox("REPORT_CONSTANT_REFERENCE_VALUES", message("inspection.data.flow.warn.when.reading.a.value.guaranteed.to.be.constant")));
|
||||
checkbox("REPORT_CONSTANT_REFERENCE_VALUES", JavaAnalysisBundle.message("inspection.data.flow.warn.when.reading.a.value.guaranteed.to.be.constant")));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -401,7 +401,6 @@ inspection.data.flow.filter.notnull.quickfix=Insert 'filter(Objects::nonNull)' s
|
||||
inspection.data.flow.nullable.quickfix.option=Suggest @Nullable annotation for methods/fields/parameters where nullable values are used
|
||||
inspection.data.flow.true.asserts.option=Don't report assertions with condition statically proven to be always true
|
||||
inspection.data.flow.ignore.assert.statements=Ignore assert statements
|
||||
inspection.data.flow.warn.when.reading.a.value.guaranteed.to.be.constant=Warn when constant is stored in variable
|
||||
inspection.data.flow.treat.non.annotated.members.and.parameters.as.nullable=Treat non-annotated members and parameters as @Nullable
|
||||
inspection.data.flow.report.not.null.required.parameter.with.null.literal.argument.usages=Report not-null required parameter with null-literal argument usages
|
||||
inspection.data.flow.report.nullable.methods.that.always.return.a.non.null.value=Report nullable methods that always return a non-null value
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ import com.intellij.codeInspection.dataFlow.value.DfaValueFactory
|
||||
import com.intellij.codeInspection.options.OptPane
|
||||
import com.intellij.codeInspection.options.OptPane.checkbox
|
||||
import com.intellij.codeInspection.options.OptPane.pane
|
||||
import com.intellij.java.JavaBundle
|
||||
import com.intellij.java.analysis.JavaAnalysisBundle
|
||||
import com.intellij.psi.PsiElement
|
||||
import com.intellij.psi.PsiElementVisitor
|
||||
import com.intellij.psi.util.PsiTreeUtil
|
||||
@@ -103,7 +103,7 @@ class KotlinConstantConditionsInspection : AbstractKotlinInspection() {
|
||||
|
||||
override fun getOptionsPane(): OptPane {
|
||||
return pane(
|
||||
checkbox("warnOnConstantRefs", JavaBundle.message("inspection.data.flow.warn.when.reading.a.value.guaranteed.to.be.constant"))
|
||||
checkbox("warnOnConstantRefs", JavaAnalysisBundle.message("inspection.data.flow.warn.when.reading.a.value.guaranteed.to.be.constant"))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user