diff --git a/java/java-analysis-impl/src/com/intellij/codeInspection/RedundantExplicitVariableTypeInspection.java b/java/java-analysis-impl/src/com/intellij/codeInspection/RedundantExplicitVariableTypeInspection.java index 6d84a6836e6c..03bedb5c6e58 100644 --- a/java/java-analysis-impl/src/com/intellij/codeInspection/RedundantExplicitVariableTypeInspection.java +++ b/java/java-analysis-impl/src/com/intellij/codeInspection/RedundantExplicitVariableTypeInspection.java @@ -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()); } diff --git a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/InspectionGadgetsBundle.properties b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/InspectionGadgetsBundle.properties index 4e245d2919ce..abe32c422a74 100644 --- a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/InspectionGadgetsBundle.properties +++ b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/InspectionGadgetsBundle.properties @@ -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=#ref() can be replaced with '==' not.object.equals.can.be.equality.problem.descriptor=!#ref() 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 #ref #loc