Lines 394-405
Link Here
|
394 |
if (isNumber(obj)) { |
394 |
if (isNumber(obj)) { |
395 |
return coerce((Number) obj); |
395 |
return coerce((Number) obj); |
396 |
} |
396 |
} |
397 |
if (obj instanceof String) { |
|
|
398 |
return coerce((String) obj); |
399 |
} |
400 |
if (obj == null || "".equals(obj)) { |
397 |
if (obj == null || "".equals(obj)) { |
401 |
return coerce(ZERO); |
398 |
return coerce(ZERO); |
402 |
} |
399 |
} |
|
|
400 |
if (obj instanceof String) { |
401 |
return coerce((String) obj); |
402 |
} |
403 |
|
403 |
|
404 |
if (obj instanceof Character) { |
404 |
if (obj instanceof Character) { |
405 |
return coerce(Short.valueOf((short) ((Character) obj).charValue())); |
405 |
return coerce(Short.valueOf((short) ((Character) obj).charValue())); |