mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-06 01:06:54 +07:00
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;
|
|
}
|
|
} |