mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 22:20:54 +07:00
13 lines
343 B
Java
13 lines
343 B
Java
// "Replace iteration with bulk 'Collection.addAll()' call" "true-preview"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void test(Integer[] arr) {
|
|
List<Integer> result = new ArrayList<>();
|
|
result.add(1);
|
|
for (int idx = 0; idx < arr.length; idx++) {
|
|
result.<caret>add(arr[idx]);
|
|
}
|
|
}
|
|
} |