Files
openide/java/java-impl/resources/inspectionDescriptions/LoopConditionNotUpdatedInsideLoop.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
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>