mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
11 lines
347 B
Java
11 lines
347 B
Java
// "Apply conversion '.toArray(new java.util.List[0][])'" "true-preview"
|
|
|
|
import java.util.*;
|
|
class GenericArray {
|
|
static List<String>[][] foo() {
|
|
Set<List<String>[]> set = new HashSet<>();
|
|
set.add(new List[]{Arrays.asList("a", "b"), Arrays.asList("c", "d")});
|
|
List<String>[][] arr = set.toArray(new List[0][]);
|
|
return arr;
|
|
}
|
|
} |