mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
local var type: make messages less aggressive
This commit is contained in:
+1
-1
@@ -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());
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user