mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
10 lines
251 B
Java
10 lines
251 B
Java
// "Apply conversion '.toArray(new java.lang.Integer[0])'" "true-preview"
|
|
|
|
import java.util.*;
|
|
class Initialize {
|
|
Integer[] foo() {
|
|
Collection<Integer> c = Arrays.asList(1, 2);
|
|
Integer[] arr = c.toArray(new Integer[0]);
|
|
return arr;
|
|
}
|
|
} |