mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
11 lines
296 B
Java
11 lines
296 B
Java
// "Replace loop with 'Arrays.setAll()' method call" "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));
|
|
}
|
|
} |