mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-163460 Recognize patterns convertible to Arrays.setAll()
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Replace loop with Arrays.setAll" "true"
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
public void test(List<Integer> ints) {
|
||||
int[] arr = new int[ints.size()];
|
||||
for(int <caret>i = 0; arr.length > i; i++) {
|
||||
arr[i] = ints.get(i);
|
||||
}
|
||||
System.out.println(Arrays.toString(arr));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user