From 62fd1b900f7f653464d530bfa58f04897240d2fa Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sat, 21 Sep 2024 10:10:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E7=BB=84=E6=8B=BC?= =?UTF-8?q?=E6=8E=A5=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xyz/zhouxy/plusone/commons/util/ArrayTools.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; }