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

org.sonar.l10n.pmd.rules.pmd.JumbledIncrementer.html Maven / Gradle / Ivy

Avoid jumbled loop incrementers - it's usually a mistake, and it's confusing even if it's what's intended.
    
Example :
public class JumbledIncrementerRule1 {
  public void foo() {
   for (int i = 0; i < 10; i++) {
    for (int k = 0; k < 20; i++) {
     System.out.println("Hello");
    }
   }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy