[jdom-interest] B9 and hasChildren( ) deprecation
Shaun Smith
shauns at pixology.com
Tue Apr 15 03:45:51 PDT 2003
Hi,
I have just moved over to the B9 codebase from B7 (had to skip B8 due to
that appalling memory leak in 1.4.1), and am a little surprised to find that
hasChildren( ) has been deprecated.
I have had a search through the archives, and found a snippet of
converstaion between Jason and Elliotte where it's deprecation is discussed
in performance terms.
I vote for the reinstatement of the method, as think it improves the
readability of client code:
if( ! anElement.hasChildren( ) )
compared to:
if( 0 == anElement.getChildren( ).size( ) )
Other than that, and the addition of the IOException to the SAXBuilder
method signatures, everything else looks good for us with B9.
Cheers,
Shaun.
More information about the jdom-interest
mailing list