mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复MutableObj.equals空指针问题
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package cn.hutool.core.lang.mutable;
|
||||
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
@@ -61,7 +63,7 @@ public class MutableObj<T> implements Mutable<T>, Serializable {
|
||||
}
|
||||
if (this.getClass() == obj.getClass()) {
|
||||
final MutableObj<?> that = (MutableObj<?>) obj;
|
||||
return this.value.equals(that.value);
|
||||
return ObjUtil.equals(this.value, that.value);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user