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