mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
[java-inspections] IDEA-346005 Add new inspection: Unnecessary keySet() call
GitOrigin-RevId: d1f1db0ae939017a8550b91cd8742dc222a8db99
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ecc3d78a3a
commit
ac0c57748b
@@ -2182,7 +2182,7 @@ inspection.replace.on.literal.display.name=Replacement operation has no effect
|
||||
inspection.redundant.string.operation.display.name=Redundant 'String' operation
|
||||
inspection.redundant.embedded.expression.display.name=Redundant embedded expression in string template
|
||||
inspection.redundant.string.fix.remove.str.processor.description=String template can be converted to a plain string literal
|
||||
inspection.redundant.string.remove.fix.name=Remove redundant ''{0}()'' call
|
||||
inspection.remove.redundant.call.fix.name=Remove redundant ''{0}()'' call
|
||||
inspection.redundant.string.fix.family.name=Remove redundant call
|
||||
inspection.redundant.string.call.message=Call to <code>#ref()</code> is redundant #loc
|
||||
inspection.redundant.empty.string.argument.message=Unnecessary empty string argument
|
||||
|
||||
@@ -5,11 +5,11 @@ import com.intellij.codeInsight.Nullability;
|
||||
import com.intellij.codeInspection.CleanupLocalInspectionTool;
|
||||
import com.intellij.codeInspection.CommonQuickFixBundle;
|
||||
import com.intellij.codeInspection.LocalQuickFix;
|
||||
import com.intellij.modcommand.PsiUpdateModCommandQuickFix;
|
||||
import com.intellij.codeInspection.dataFlow.NullabilityUtil;
|
||||
import com.intellij.codeInspection.options.OptPane;
|
||||
import com.intellij.java.analysis.JavaAnalysisBundle;
|
||||
import com.intellij.modcommand.ModPsiUpdater;
|
||||
import com.intellij.modcommand.PsiUpdateModCommandQuickFix;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
@@ -61,7 +61,7 @@ public final class UnnecessaryToStringCallInspection extends BaseInspection impl
|
||||
@NotNull
|
||||
public String getName() {
|
||||
if (replacementText == null) {
|
||||
return InspectionGadgetsBundle.message("inspection.redundant.string.remove.fix.name", "toString");
|
||||
return InspectionGadgetsBundle.message("inspection.remove.redundant.call.fix.name", "toString");
|
||||
}
|
||||
return CommonQuickFixBundle.message("fix.replace.with.x", replacementText);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user