mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
16 lines
270 B
Java
16 lines
270 B
Java
import java.util.Random;
|
|
import java.util.List;
|
|
|
|
class TestCompilerWarnings {
|
|
long foo(List<String> l) {
|
|
return l.stream().map(s -> {
|
|
if (new Random().nextInt() > 2) {
|
|
return null;
|
|
}
|
|
else {
|
|
return s;
|
|
}
|
|
}).count();
|
|
}
|
|
|
|
} |