Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertCollectionToArray/afterArray.java

11 lines
248 B
Java

// "Apply conversion '.toArray(new int[0][])'" "true"
import java.util.*;
class Array {
static int[][] foo() {
Set<int[]> set = new HashSet<>();
set.add(new int[]{1, 2});
int[][] arr = set.toArray(new int[0][]);
return arr;
}
}