mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
12 lines
268 B
Java
12 lines
268 B
Java
// "Replace with forEach" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
class Sample {
|
|
List<String> foo = new ArrayList<>();
|
|
String foo(){
|
|
((List<String>) foo).stream().filter(s -> s == null).forEach(System.out::println);
|
|
return null;
|
|
}
|
|
}
|