mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IfStatementWithIdenticalBranches: fix inspection naming
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user