You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by qMax <qm...@mediasoft.ru> on 2005/06/01 09:48:37 UTC

Re: [1.2.x] SiteTreeNode.acceptSubTree

Monday, May 30, 2005, 5:25:09 PM, qMax wrote:

q> in interface SiteTreeNode javadocs it is wrote:

q> public void acceptSubtree(SiteTreeNodeVisitor visitor)
q>                    throws DocumentException
q> Traverse the node ant its children and call the accept method.

q> However, the code in SiteTreeImpl calls:
q>            for (int i = 0; i < children.length; i++) {
q>                 children[i].acceptSubtree(visitor);
q>             }
q> That is, not 'accept' but 'acceptSubtree' is callen
q> and is recursively applied not to children but to all ancestors.

while in .acceptReverseSubtree there .accept is called recursively,
and recursion stops at first level of tree.

Do i really miss something ?

-- 
 qMax


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


javadocs for SiteTreeNode.acceptSubTree

Posted by qMax <qm...@mediasoft.ru>.
both .acceptSubtree and .acceptReverseSubtree are recursively applied
to ancestors.

I'd suggest javadocs of these classes to update.

Sorry for noise.

-- 
 qMax


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org