mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
18 lines
651 B
HTML
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> |