All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.java.rules.squid.S2252.html Maven / Gradle / Ivy

There is a newer version: 8.6.0.37351
Show newest version
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