mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 20:33:31 +07:00
GitOrigin-RevId: cdf0c90b6844a750935198fa1efeb3c8e8af103b
12 lines
284 B
Java
12 lines
284 B
Java
// "Replace loop with 'Arrays.setAll()' method call" "true"
|
|
|
|
class Test {
|
|
|
|
public static Object[] init(int n, boolean b) {
|
|
Object[] data = new Object[n];
|
|
for (<caret>int j = 0; j < n; j++) {
|
|
data[j] = (j / 2 + n == 0) ? "1" : new Object();
|
|
}
|
|
return data;
|
|
}
|
|
} |