Its the behavior of the binding layer with jaxb. The question is whether
emtpy elements would be output as empty xml elements vs null elements
not being output. That the java for loop syntax does not check for null
Iterables makes this much more painful than it should be.
Thomas Diesler wrote:
ServletMetaData.getInitParam() used to return an empty list. It now
returns null.
Is this by design and now the responsibility of the client to check for
null list? I personally prefer an API to return empty lists instead of
null.
cheers
-thomas