org.sonar.l10n.java.rules.squid.S2252.html Maven / Gradle / Ivy
If a for
loop's condition is false before the first loop iteration, the loop will never be executed. Such loops are almost always bugs, particularly when the initial value and stop conditions are hard-coded.
Noncompliant Code Example
for (int i = 10; i < 10; i++) { // Noncompliant
// ...
© 2015 - 2025 Weber Informatics LLC | Privacy Policy