mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
24 lines
666 B
HTML
24 lines
666 B
HTML
<html>
|
|
<body>
|
|
Reports any variables and parameters that are used in a loop condition
|
|
and are not updated inside the loop.
|
|
<p>Such variables and parameters are usually used by mistake as they
|
|
may cause an infinite loop if they are executed.</p>
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
void loopDoesNotLoop(boolean b) {
|
|
while (b) {
|
|
System.out.println();
|
|
break;
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>Configure the inspection:</p>
|
|
<p>
|
|
Use the <b>Ignore possible non-local changes</b> option to disable this inspection
|
|
if the condition can be updated indirectly (e.g. via the called method or concurrently from another thread).
|
|
</p>
|
|
|
|
</body>
|
|
</html> |