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

org.sonar.l10n.squidjava.rules.squid.S1066.html Maven / Gradle / Ivy

Merging collapsible if statements increases the code's readability.

The following code:

if (condition1) {
  if (condition2) {             // Non-Compliant
    /* ... */
  }
}

should be refactored into:

if (condition1 && condition2) { // Compliant
  /* ... */
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy