mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 16:47:50 +07:00
GitOrigin-RevId: 8e5cfd1973a0152893fac37d7d50837fc92ca53a
14 lines
270 B
Java
14 lines
270 B
Java
// "Replace loop with 'Arrays.fill()' method call" "true"
|
|
|
|
public class Test {
|
|
|
|
public static int[] init(int[] arr, boolean b) {
|
|
if (b) {
|
|
arr = new int[10];
|
|
}
|
|
for (<caret>int i = 0; i < arr.length; i++) {
|
|
arr[i] = 0;
|
|
}
|
|
return arr;
|
|
}
|
|
} |