IG: try to clarify language

This commit is contained in:
Bas Leijdekkers
2018-10-04 16:56:24 +02:00
parent 869ee366f6
commit 0c8c6c9154
2 changed files with 5 additions and 5 deletions
@@ -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=<code>#ref</code> 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
@@ -1,13 +1,13 @@
<html>
<body>
Reports any <b>if</b> statements with which can be replaced
Reports any <b>if</b> statements that can be replaced
by a <b>switch</b> statement. This inspection will automatically suggest string
switches when the project language level is Java 7 or higher.
<!-- tooltip end -->
<p>
Use the text field below to indicate the minimum
number of <b>case</b> branches the resulting <b>switch</b> statement should have.
The <b>default</b> branch is not counted.
Use the text field below to indicate the minimum number of <b>if</b> branches with condition
an <b>if</b> statement should have to be reported.
A terminal <b>else</b> branch (without <b>if</b>) is not counted
<p>
Use the first checkbox below to have this inspection suggest <b>switch</b> statements on
primitive and boxed numbers and characters.