local var type: make messages less aggressive

This commit is contained in:
Anna.Kozlova
2018-01-18 16:56:17 +01:00
parent 1b7ebca3a8
commit 2acd327a7d
2 changed files with 2 additions and 2 deletions
@@ -48,7 +48,7 @@ public class RedundantExplicitVariableTypeInspection extends AbstractBaseJavaLoc
replaceExplicitTypeWithVar(typeElementCopy, variable);
if (variable.getType().equals(copyVariable.getType())) {
holder.registerProblem(element2Highlight,
"Explicit type of local variable is redundant",
"Explicit type of local variable can be omitted",
ProblemHighlightType.LIKE_UNUSED_SYMBOL,
new ReplaceWithVarFix());
}
@@ -2207,7 +2207,7 @@ not.equals.to.equality.quickfix=Replace '!equals()' with '!='
object.equals.can.be.equality.display.name='equals()' call can be replaced with '=='
object.equals.can.be.equality.problem.descriptor=<code>#ref()</code> can be replaced with '=='
not.object.equals.can.be.equality.problem.descriptor=<code>!#ref()</code> can be replaced with '!='
redundant.explicit.var.type.display.name=Local variable type is redundant
redundant.explicit.var.type.display.name=Local variable type can be omitted
variable.type.can.be.explicit.display.name=Variable type can be explicit
assignment.or.return.of.field.with.mutable.type.display.name=Assignment or return of field with mutable type
assignment.of.field.with.mutable.type.problem.descriptor=Assignment to {0} field ''{1}'' from parameter <code>#ref</code> #loc