On 21/08/2007, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> Why DependencyNode.getDepth was deprecated? it's still useful

Sorry for the delayed reply - working my way though my inbox..

It was deprecated with the introduction of node visitors and filters
since it can give misleading results.  For example, consider
serialising a tree with a filter using a visitor: getDepth would
return the unfiltered depth of a node, whereas the correct depth would
be calculated by the visitor.

Cheers,

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to