mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 18:48:28 +07:00
GitOrigin-RevId: 8e5cfd1973a0152893fac37d7d50837fc92ca53a
14 lines
249 B
Java
14 lines
249 B
Java
// "Replace loop with 'Arrays.fill()' method call" "true"
|
|
|
|
import java.util.Arrays;
|
|
|
|
public class Test {
|
|
|
|
public static int[] init(int[] arr, boolean b) {
|
|
if (b) {
|
|
arr = new int[10];
|
|
}
|
|
Arrays.fill(arr, 0);
|
|
return arr;
|
|
}
|
|
} |