Re: [Simple-support] Empty Primitive Arrays
Brought to you by:
niallg
|
From: Niall G. - Y. <Nia...@yi...> - 2012-08-10 02:59:53
|
The problem with nulls is representing it in XML, is <tag></tag> null or “”, if I could distinguish from </tag> and <tag></tag> things would be easy, bit its not possible with StAX, DOM, or XmlPull. So the empty= attribute is required. From: Robin Drew [mailto:rob...@gm...] Sent: Wednesday, 1 August 2012 2:18 AM To: sim...@li... Subject: [Simple-support] Empty Primitive Arrays Hi, As a follow up from the previous mail - I do note the "empty" attribute for the annotation allows for empty array de-serialization, so mostly my previous can be disregarded. I would however ask why this is not defaulted for those common types for which there is clearly no ambiguity as to whether it is an empty array such as int[] etc. Cheers, Robin |