for(; exitCondition(); ) {
process();
}
This loop can be replaced with
while(exitCondition()) {
process();
}
A fix action is also available for other for
loops, so you can replace any for
loop with while
.
Use the checkbox below if you wish this inspection to ignore for loops with trivial or non-existent conditions.