mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-163460 Recognize patterns convertible to Arrays.setAll()
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "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()];
|
||||
Arrays.setAll(arr, ints::get);
|
||||
System.out.println(Arrays.toString(arr));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user