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

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

There is a newer version: 8.6.0.37351
Show newest version

When only the condition expression is defined in a for loop, but the init and increment expressions are missing, a while loop should be used instead to increase readability.

Noncompliant Code Example

for (;condition;) { /*...*/ }

Compliant Solution

while (condition) { /*...*/ }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy