added Short support to obj2variant

This commit is contained in:
clay_shooter
2005-03-06 01:44:36 +00:00
parent bc8e0d7199
commit f30ec92037

View File

@@ -248,6 +248,8 @@ public class Dispatch extends JacobObject
return (Variant) o; return (Variant) o;
if (o instanceof Integer) if (o instanceof Integer)
return new Variant(((Integer) o).intValue()); return new Variant(((Integer) o).intValue());
if (o instanceof Short)
return new Variant(((Short) o).shortValue());
if (o instanceof String) if (o instanceof String)
return new Variant((String) o); return new Variant((String) o);
if (o instanceof Boolean) if (o instanceof Boolean)