Files
openide/java/java-impl/resources/inspectionDescriptions/LoopWithImplicitTerminationCondition.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

18 lines
651 B
HTML

<html>
<body>
Reports any <code>while</code>,
<code>do-while</code>, and <code>for</code>
loops that have the <code>true</code> constant as their
only condition. At the same time, such loops can be still terminated by a containing
<code>if</code> statement which can break out of the loop.
<p>Such an <code>if</code> statement must be the first or the only statement
in a <code>while</code> or <code>for</code>
loop and the last or the only statement in a <code>do-while</code> loop.</p>
<p>Removing the <code>if</code> statement and making its condition an explicit
loop condition simplifies the loop.</p>
<!-- tooltip end -->
<p>
</body>
</html>