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

16 lines
407 B
HTML

<html>
<body>
Reports loops that cannot be completed without an index overflow or loops that don't loop at all.
It usually happens because of a mistake in the update operation.
<p>Example:</p>
<pre><code>
void foo(int s) {
for (int i = s; i > 12; i++) { // i-- should be here
System.out.println(i);
}
}
</code></pre>
<!-- tooltip end -->
<p><small>New in 2019.1</small></p>
</body>
</html>