* Allow float to boolean conversion.
This commit is contained in:
parent
4bf021d45b
commit
a5e5a0915e
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ public final class Property implements IProperty, Serializable, Cloneable, Compa
|
||||||
return ((Boolean) value).booleanValue();
|
return ((Boolean) value).booleanValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == INTEGER) {
|
if (type == INTEGER || type == FLOAT) {
|
||||||
return !(0 == getIntegerValue());
|
return !(0 == getIntegerValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue