IfStatementWithIdenticalBranches: fix inspection naming

This commit is contained in:
Roman.Ivanov
2018-06-07 12:58:40 +07:00
parent 40dc7f5196
commit b803c8dc2b
7 changed files with 8 additions and 7 deletions
@@ -1,4 +1,4 @@
// "Merge else if statement" "true"
// "Merge 'else if' statement" "true"
import java.util.Collection;
import java.util.List;
@@ -1,4 +1,4 @@
// "Merge else if statement" "true"
// "Merge 'else if' statement" "true"
import java.util.Collection;
import java.util.List;
@@ -1,4 +1,4 @@
// "Merge else if statement" "true"
// "Merge 'else if' statement" "true"
import java.util.Collection;
import java.util.List;
@@ -1,4 +1,4 @@
// "Merge else if statement" "true"
// "Merge 'else if' statement" "true"
import java.util.Collection;
import java.util.List;
@@ -1,4 +1,4 @@
// "Merge else if statement" "false"
// "Merge 'else if' statement" "false"
import java.util.Collection;
import java.util.List;
@@ -253,13 +253,14 @@ inspection.export.generating.html.for=Generating HTML:{0}
inspection.export.error.writing.to=Error writing to {0}: {1}
inspection.common.if.parts.family=Extract common parts of 'if' statement
inspection.common.if.parts.family.else.if=Merge else if statement
inspection.common.if.parts.family.else.if=Merge 'else if' statement
inspection.common.if.parts.message.variables.only=Extract variables from 'if' {0}
inspection.common.if.parts.message.with.variables.extract=Extract common part with variables from 'if' {0}
inspection.common.if.parts.message.without.variables.extract=Extract common part from 'if' {0}
inspection.common.if.parts.message.whole.branch=Extract common part removing branch {0}
inspection.common.if.parts.message.complete.duplicate=Collapse 'if' statement {0}
inspection.common.if.parts.message.complete.duplicate.side.effect=Collapse 'if' statement and extract side effect
inspection.common.if.parts.description='if' statement with common parts
inspection.export.results.error.title=Inspection Results Export
inspection.export.inspections.link.text=Inspections
@@ -54,7 +54,7 @@ public class IfStatementWithIdenticalBranchesInspection extends AbstractBaseJava
IfInspectionResult result = inspector.inspect(ifStatement, thenStatements, elseStatements, isOnTheFly);
if (result != null) {
ProblemHighlightType highlightType = result.myIsWarning ? ProblemHighlightType.WEAK_WARNING : ProblemHighlightType.INFORMATION;
holder.registerProblem(result.myElementToHighlight, result.myMessage, highlightType, result.myFix);
holder.registerProblem(result.myElementToHighlight, InspectionsBundle.message("inspection.common.if.parts.description"), highlightType, result.myFix);
}
}
}