From 0c8c6c91548bd199bb87b36bd70675391cf431cb Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Thu, 4 Oct 2018 16:51:23 +0200 Subject: [PATCH] IG: try to clarify language --- .../src/com/siyeh/InspectionGadgetsBundle.properties | 2 +- .../src/inspectionDescriptions/IfCanBeSwitch.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/InspectionGadgetsBundle.properties b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/InspectionGadgetsBundle.properties index 564a212e8bb5..50a78c2666f2 100644 --- a/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/InspectionGadgetsBundle.properties +++ b/plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/InspectionGadgetsBundle.properties @@ -1788,7 +1788,7 @@ try.with.identical.catches.display.name=Identical 'catch' branches in 'try' stat try.with.identical.catches.problem.descriptor=''catch'' branch identical to ''{0}'' branch #loc if.can.be.switch.display.name='if' replaceable with 'switch' if.can.be.switch.problem.descriptor=#ref statement replaceable with 'switch' statement #loc -if.can.be.switch.minimum.branch.option=Minimum number of branches: +if.can.be.switch.minimum.branch.option=Minimum number of 'if' condition branches: if.can.be.switch.int.option=Suggest switch on numbers if.can.be.switch.enum.option=Suggest switch on enums if.can.be.switch.null.safe.option=Only suggest on null-safe expressions diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/IfCanBeSwitch.html b/plugins/InspectionGadgets/src/inspectionDescriptions/IfCanBeSwitch.html index 0d9c37dcdf9d..e047c3476a98 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/IfCanBeSwitch.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/IfCanBeSwitch.html @@ -1,13 +1,13 @@ -Reports any if statements with which can be replaced +Reports any if statements that can be replaced by a switch statement. This inspection will automatically suggest string switches when the project language level is Java 7 or higher.

-Use the text field below to indicate the minimum -number of case branches the resulting switch statement should have. -The default branch is not counted. +Use the text field below to indicate the minimum number of if branches with condition +an if statement should have to be reported. +A terminal else branch (without if) is not counted

Use the first checkbox below to have this inspection suggest switch statements on primitive and boxed numbers and characters.