mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
GitOrigin-RevId: a9d5627d25572edeb2f920aff62d108dd6f183ac
12 lines
236 B
Java
12 lines
236 B
Java
// "Replace loop with 'Arrays.setAll()' method call" "true"
|
|
|
|
import java.util.Arrays;
|
|
|
|
class Test {
|
|
|
|
void test(boolean choice) {
|
|
Object[] arr = new Object[10];
|
|
Arrays.setAll(arr, i -> (choice ? "foo" : new Object()));
|
|
}
|
|
|
|
} |