mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-161198 Migration from Stream API back to for loops
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Replace Stream API chain with loop" "true"
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
public void test(List<String> list) {
|
||||
long count = 0;
|
||||
for (String s : list) {
|
||||
count++;
|
||||
}
|
||||
long x = count;
|
||||
System.out.println(x);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user