[jboss-dev] Re: metadata empty lists are now null

Scott M Stark sstark at redhat.com
Fri Oct 12 10:59:32 EDT 2007


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
> 




More information about the jboss-development mailing list