mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 20:33:31 +07:00
GitOrigin-RevId: a9d5627d25572edeb2f920aff62d108dd6f183ac
12 lines
250 B
Java
12 lines
250 B
Java
// "Replace loop with 'Arrays.setAll()' method call" "true"
|
|
|
|
class Test {
|
|
|
|
void test(boolean choice) {
|
|
Object[] arr = new Object[10];
|
|
for (<caret>int i = 0; i < arr.length; i++) {
|
|
arr[i] = (choice ? "foo" : new Object());
|
|
}
|
|
}
|
|
|
|
} |