mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
Merge pull request #1045 from varyuan/patch-1
在此上下文中,表达式 boolean.class == value.getClass() ,永远为false,故删去
This commit is contained in:
commit
48d64d3c5d
@ -16,9 +16,6 @@ public class AtomicBooleanConverter extends AbstractConverter<AtomicBoolean> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected AtomicBoolean convertInternal(Object value) {
|
protected AtomicBoolean convertInternal(Object value) {
|
||||||
if (boolean.class == value.getClass()) {
|
|
||||||
return new AtomicBoolean((boolean) value);
|
|
||||||
}
|
|
||||||
if (value instanceof Boolean) {
|
if (value instanceof Boolean) {
|
||||||
return new AtomicBoolean((Boolean) value);
|
return new AtomicBoolean((Boolean) value);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user