![]() |
|
|
|
|
Issue Type:
|
Improvement
|
|
Affects Versions:
|
1.4.2 |
|
Assignee:
|
Jörg Schaible
|
|
Components:
|
Converters |
|
Created:
|
24/Dec/12 6:51 AM
|
|
Description:
|
<myInstrument>
<myInstrumentId>20</paymentInstrumentId>
<nickName>XYZ</nickName>
<defaultInstrument/>
</myInstrument>
I have define the data type for defaultInstrument to be Boolean. And I expect this value to be null if nothing is passed in the request so that I don't end up updating the already stored default value of this instrument. I looked into the BooleanConvertor code.
public Object fromString(final String str) {
if (caseSensitive) {
return positive.equals(str) ? Boolean.TRUE : Boolean.FALSE;
} else {
return positive.equalsIgnoreCase(str) ? Boolean.TRUE : Boolean.FALSE;
}
}
There is no check if its primitive type or an Object and to take a decision that value can be null for the object. Is there a way to handle this wo\ithout having to right a custom converter.
|
|
Project:
|
XStream
|
|
Priority:
|
Major
|
|
Reporter:
|
Abhay Kumar
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email