mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
1. Surround with array initialization 2. Apply .toArray() conversion 3. Limited vararg support 4. Limited qualifier propagation GitOrigin-RevId: f81f593502df317b555e816af20cdec2d04488fc
8 lines
252 B
Java
8 lines
252 B
Java
// "Apply conversion '.toArray(new java.lang.String[0])'" "true-preview"
|
|
import java.util.*;
|
|
|
|
public class Demo {
|
|
void test2(Collection<String> collection) {
|
|
Set<String[]> integers = Collections.singleton(collection.toArray(new String[0]));
|
|
}
|
|
} |