| <html> | |
| <body> | |
| Reports loops that cannot complete without an index overflow or that don't loop at all. | |
| <!-- tooltip end --> | |
| Usually it 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> | |
| <p><small>New in 2019.1</small></p> | |
| </body> | |
| </html> |