blob: 206b262764c01d97194930baca9d33fd0086d02f [file]
// "Replace loop with 'Arrays.fill()' method call" "true"
import java.util.Arrays;
public class Test {
public static int[] init(boolean b) {
int[] arr = new int[10];
if (b) {
arr = new int[]{1, 2, 3, 4, 5};
}
Arrays.fill(arr, 0);
return arr;
}
}