diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/ArrayTools.java b/src/main/java/xyz/zhouxy/plusone/commons/util/ArrayTools.java index 95a8e65..9297b48 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/ArrayTools.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/ArrayTools.java @@ -180,7 +180,7 @@ public class ArrayTools { int i = 0; for (float[] arr : arrays) { System.arraycopy(arr, 0, result, i, arr.length); - i = arr.length; + i += arr.length; } return result; } @@ -200,7 +200,7 @@ public class ArrayTools { int i = 0; for (double[] arr : arrays) { System.arraycopy(arr, 0, result, i, arr.length); - i = arr.length; + i += arr.length; } return result; } @@ -220,7 +220,7 @@ public class ArrayTools { int i = 0; for (byte[] arr : arrays) { System.arraycopy(arr, 0, result, i, arr.length); - i = arr.length; + i += arr.length; } return result; } @@ -240,7 +240,7 @@ public class ArrayTools { int i = 0; for (long[] arr : arrays) { System.arraycopy(arr, 0, result, i, arr.length); - i = arr.length; + i += arr.length; } return result; } @@ -260,7 +260,7 @@ public class ArrayTools { int i = 0; for (int[] arr : arrays) { System.arraycopy(arr, 0, result, i, arr.length); - i = arr.length; + i += arr.length; } return result; }