fix #I2AO8B

This commit is contained in:
Looly 2020-12-27 02:53:54 +08:00
parent e02abaf128
commit a50aba4a7b
2 changed files with 2 additions and 6 deletions

View File

@ -20,6 +20,7 @@
* 【db 】 解决Hive获取表名失败问题issue#I2AGLU@Gitee
* 【core 】 修复DateUtil.parse未使用严格模式导致结果不正常的问题issue#1332@Github
* 【core 】 修复RuntimeUtil.getUsableMemory非static问题issue#I2AQ2M@Gitee
* 【core 】 修复ArrayUtil.equals方法严格判断问题issue#I2AO8B@Gitee
-------------------------------------------------------------------------------------------------------------
# 5.5.4 (2020-12-16)

View File

@ -523,7 +523,7 @@ public class ArrayUtil extends PrimitiveArrayUtil {
}
/**
* 克隆数组如果非数组返回<code>null</code>
* 克隆数组如果非数组返回{@code null}
*
* @param <T> 数组元素类型
* @param obj 数组对象
@ -1667,11 +1667,6 @@ public class ArrayUtil extends PrimitiveArrayUtil {
Assert.isTrue(isArray(array1), "First is not a Array !");
Assert.isTrue(isArray(array2), "Second is not a Array !");
// 数组类型一致性判断
if (array1.getClass() != array2.getClass()) {
return false;
}
if (array1 instanceof long[]) {
return Arrays.equals((long[]) array1, (long[]) array2);
} else if (array1 instanceof int[]) {