mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
15 lines
281 B
Java
15 lines
281 B
Java
// "Replace with forEach" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Objects;
|
|
|
|
class Sample {
|
|
List<String> foo = new ArrayList<>();
|
|
String foo(){
|
|
foo.stream().filter(Objects::isNull).forEach(s -> bar());
|
|
return null;
|
|
}
|
|
|
|
bar() {}
|
|
}
|