added Short support to obj2variant
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user