IDEA-163405 Migration from Stream API back to for loops: iteration#2

This commit is contained in:
Tagir Valeev
2016-11-24 18:15:51 +07:00
parent 16469a3b99
commit c2e815fc97
86 changed files with 2019 additions and 206 deletions
@@ -9,8 +9,8 @@ public class Main {
long limit = 20;
for (String x = ""; ; x = x + "a") {
if (limit-- == 0) break;
int i = x.length();
stat.accept(i);
int length = x.length();
stat.accept(length);
}
return stat;
}