Files
openide/java/java-impl/resources/inspectionDescriptions/LoopConditionNotUpdatedInsideLoop.html
2025-02-05 04:43:28 +00:00

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>