mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 12:17:12 +07:00
17 lines
345 B
Java
17 lines
345 B
Java
// "Replace with collect" "true"
|
|
|
|
import java.util.*;
|
|
import java.util.stream.Collectors;
|
|
|
|
public class Test {
|
|
MyObj test(List<String> list) {
|
|
List<String> res = list.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());
|
|
return new MyObj(res);
|
|
}
|
|
|
|
private class MyObj {
|
|
public MyObj(List<String> res) {
|
|
}
|
|
}
|
|
}
|