style: include MAC_MANUAL_ARRAY_COPY (#5199)

This commit is contained in:
Piotr Idzik
2024-06-04 23:02:38 +02:00
committed by GitHub
parent 493942e319
commit 440f3ce18b
5 changed files with 5 additions and 17 deletions

View File

@ -34,9 +34,7 @@ public final class BFPRT {
public static int[] copyArray(int[] arr) {
int[] copyArr = new int[arr.length];
for (int i = 0; i < arr.length; i++) {
copyArr[i] = arr[i];
}
System.arraycopy(arr, 0, copyArr, 0, arr.length);
return copyArr;
}