public static Object getParamObjectArray(Class<?> type, byte[] paramBytes) {
Object retObj = null;
- System.out.println("Got here!!!");
if ((type == byte[].class) ||
(type == byte.class)) {
retObj = (Object) paramBytes;
byte[] retObjBytes = null;
if (obj instanceof Byte) {
- retObjBytes = (byte[]) obj;
+ retObjBytes = new byte[] { (byte) obj };
} else if (obj instanceof Short) {
retObjBytes = shortToByteArray((short) obj);
} else if (obj instanceof Integer) {