mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
14 lines
309 B
Java
14 lines
309 B
Java
// "Replace with collect" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
class Sample {
|
|
List<String> foo = new ArrayList<>();
|
|
String foo(){
|
|
Sample sm = new Sample();
|
|
sm.foo.addAll(foo.stream().collect(Collectors.toList()));
|
|
return null;
|
|
}
|
|
}
|