mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 11:29:28 +07:00
GitOrigin-RevId: 6b5616254c78f038380ab7f4bf017a5905ce7c9f
17 lines
409 B
Java
17 lines
409 B
Java
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
|
|
class Main2 {
|
|
// IDEA-221210
|
|
public static void main(String[] args) {
|
|
List<Integer> originalList = new ArrayList<>();
|
|
originalList.add(1);
|
|
final List<Integer> newList = originalList.stream()
|
|
.collect(Collectors.toCollection(() -> new ArrayList<>(1)));
|
|
|
|
boolean empty = newList.isEmpty();
|
|
}
|
|
|
|
}
|