mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
12 lines
319 B
Java
12 lines
319 B
Java
// "Replace iteration with bulk 'Collection.addAll()' call" "true-preview"
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void test(Integer[] arr) {
|
|
List<Integer> result = new ArrayList<>();
|
|
result.add(1);
|
|
result.addAll(Arrays.asList(arr));
|
|
}
|
|
} |