mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Merge pull request #1694 from PisecesPeng/patch-1
Fix 参数类型不同且不为数组类型的断言报错
This commit is contained in:
@@ -381,7 +381,8 @@ public class EqualsBuilder implements Builder<Boolean> {
|
||||
final Class<?> lhsClass = lhs.getClass();
|
||||
if (false == lhsClass.isArray()) {
|
||||
// The simple case, not an array, just test the element
|
||||
isEquals = lhs.equals(rhs);
|
||||
this.setEquals(lhs.equals(rhs));
|
||||
return this;
|
||||
}
|
||||
|
||||
// 判断数组的equals
|
||||
|
Reference in New Issue
Block a user