Convert boolean to integer in getIntegerValue()

This commit is contained in:
hns 2003-01-28 14:53:22 +00:00
parent 0e03e7a542
commit 965d758eae

View file

@ -277,6 +277,8 @@ public final class Property implements IProperty, Serializable, Cloneable {
return ((Long) value).longValue (); return ((Long) value).longValue ();
if (type == FLOAT) if (type == FLOAT)
return ((Double) value).longValue (); return ((Double) value).longValue ();
if (type == BOOLEAN)
return ((Boolean) value).booleanValue() ? 1 : 0;
try { try {
return Long.parseLong (getStringValue()); return Long.parseLong (getStringValue());
} catch (Exception x) { } catch (Exception x) {