mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
Update AtomicBooleanConverter.java
在此上下文中,表达式 boolean.class == value.getClass() ,永远为false,故删去
This commit is contained in:
parent
b49fc75f48
commit
60ec0d3b3b
@ -16,9 +16,6 @@ public class AtomicBooleanConverter extends AbstractConverter<AtomicBoolean> {
|
||||
|
||||
@Override
|
||||
protected AtomicBoolean convertInternal(Object value) {
|
||||
if (boolean.class == value.getClass()) {
|
||||
return new AtomicBoolean((boolean) value);
|
||||
}
|
||||
if (value instanceof Boolean) {
|
||||
return new AtomicBoolean((Boolean) value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user