mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
15 lines
350 B
Java
15 lines
350 B
Java
// "Replace Stream API chain with loop" "false"
|
|
|
|
import java.util.List;
|
|
|
|
import static java.util.Arrays.asList;
|
|
|
|
public class Main {
|
|
private static int test(List<String> list) {
|
|
return list.stream().mapToInt(Blahblah::size).su<caret>m();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
System.out.println(test(asList("a", "b", "c")));
|
|
}
|
|
} |