mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 15:50:49 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
26 lines
590 B
HTML
26 lines
590 B
HTML
<html>
|
|
<body>
|
|
Reports <code>for</code>, <code>while</code>,
|
|
or <code>do</code> statements that
|
|
can only exit by throwing an exception. While such statements may be correct, they
|
|
often happen due to coding errors.
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
for (;;) {
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
Use the <b>Ignore when placed in Thread.run</b> option to ignore the
|
|
infinite loop statements inside <code>Thread.run</code>.
|
|
It may be useful for the daemon threads.
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
new Thread(() -> {
|
|
while (true) {
|
|
}
|
|
}).start();
|
|
</code></pre>
|
|
<p>
|
|
</body>
|
|
</html> |