better name for "Method parameter value is always the same constant" inspection

GitOrigin-RevId: 8a9fa145c264801f683c679c3cfba49e7c7e8fee
This commit is contained in:
Bas Leijdekkers
2022-03-20 19:35:16 +00:00
committed by intellij-monorepo-bot
parent 1eeef6da62
commit 62d5b9bc4d
2 changed files with 2 additions and 3 deletions
@@ -223,7 +223,6 @@ public class SameParameterValueInspection extends GlobalJavaBatchInspectionTool
if (!anchor.isPhysical()) return null;
return manager.createProblemDescriptor(anchor,
JavaBundle.message("inspection.same.parameter.problem.descriptor",
name,
StringUtil.unquoteString(shortName)),
suggestFix ? createFix(name, stringPresentation.startsWith("\"\"")
? stringPresentation
@@ -675,10 +675,10 @@ inspection.return.separated.from.computation.descriptor=Return separated from co
inspection.return.separated.from.computation.family.quickfix=Move 'return' closer to computation of the result
inspection.return.separated.from.computation.name='return' separated from the result computation
inspection.return.separated.from.computation.quickfix=Move ''return'' closer to computation of the value of ''{0}''
inspection.same.parameter.display.name=Method parameter value is always the same constant
inspection.same.parameter.display.name=Method parameter is always the same value
inspection.same.parameter.fix.family.name=Inline parameter as constant value
inspection.same.parameter.fix.name=Inline value ''{1}'' for parameter ''{0}''
inspection.same.parameter.problem.descriptor=Actual value of parameter ''{0}'' is always ''{1}''
inspection.same.parameter.problem.descriptor=Actual value of parameter <code>#ref</code> is always ''{0}''
inspection.scope.for.title=Scope
inspection.simplifiable.comparator.comparing.message=Unnecessary ''{0}()'' call
inspection.simplifiable.comparator.display.name=Comparator method can be simplified