mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java inspection: Improved descriptions and messages for "Add Braces" and "Remove Braces" inspections. Test data updated. (IDEA-157727)
This commit is contained in:
+2
-2
@@ -2203,7 +2203,7 @@ replace.equality.with.equals.name=Replace Equality with Equals
|
||||
replace.equality.with.equals.descriptor=Replace ''{0}'' with ''{1}equals()''
|
||||
replace.equality.with.safe.equals.name=Replace Equality with Safe Equals
|
||||
replace.equality.with.safe.equals.descriptor=Replace ''{0}'' with safe ''{1}equals()''
|
||||
single.statement.in.block.name=Code Block Contains Single Statement
|
||||
single.statement.in.block.name=Code block contains single statement
|
||||
single.statement.in.block.descriptor=''{0}'' contains single statement
|
||||
single.statement.in.block.quickfix=Remove braces from ''{0}'' statement
|
||||
single.statement.in.block.family.quickfix=Remove Braces From Statement
|
||||
single.statement.in.block.family.quickfix=Remove braces from statement
|
||||
+1
-3
@@ -4,8 +4,6 @@ Reports any <b>if</b>,
|
||||
<b>while</b> or <b>for</b>
|
||||
statements without braces. Braces make the code easier to read and help prevent
|
||||
errors when modifying the code.
|
||||
<!-- tooltip end -->
|
||||
<p>
|
||||
|
||||
<p>The quick fix for the inspection wraps the statement body with braces.
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,5 +2,6 @@
|
||||
<body>
|
||||
This inspection reports control flow statements with
|
||||
only a single statement in their code block.
|
||||
<p>The quick fix for the inspection removes braces from the statement body.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+14
-14
@@ -4,98 +4,98 @@
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>4</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'for' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>8</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'if' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>10</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'else' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>14</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'if' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>19</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'else' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>23</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'for' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>28</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'do' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>34</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'while' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>40</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'if' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>41</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'for' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>42</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'if' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>43</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'for' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>46</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'else' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>SingleStatement.java</file>
|
||||
<line>50</line>
|
||||
<problem_class>Code Block Contains Single Statement</problem_class>
|
||||
<problem_class>Code block contains single statement</problem_class>
|
||||
<description>'else' contains single statement</description>
|
||||
</problem>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user