mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix #I2AO8B
This commit is contained in:
parent
e02abaf128
commit
a50aba4a7b
@ -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)
|
||||
|
@ -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[]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user