* Allow float to boolean conversion.

This commit is contained in:
hns 2007-07-16 08:03:03 +00:00
parent 4bf021d45b
commit a5e5a0915e

View file

@ -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());
} }