mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
24 lines
666 B
HTML
24 lines
666 B
HTML
<html>
|
|
<body>
|
|
Reports code blocks that are redundant to the semantics of the program and can
|
|
be replaced with their contents.
|
|
<p>The code blocks that are the bodies of <code>if</code>, <code>do</code>,
|
|
<code>while</code>, or <code>for</code> statements will not be reported by this
|
|
inspection.</p>
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
void foo() {
|
|
{ // unnecessary
|
|
int result = call();
|
|
analyze(result);
|
|
} // unnecessary
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>Configure the inspection:</p>
|
|
<p>
|
|
Use the <b>Ignore branches of 'switch' statements</b> option to ignore the code blocks that are used as branches of switch statements.
|
|
<p>
|
|
|
|
</body>
|
|
</html> |