You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by 储巍 <13...@163.com> on 2016/12/12 12:01:44 UTC

a small question of org.apache.tomcat.util.digester.Digester

Hi!

    when I read the code of Tomcat 9. I have the following question.

CLass:org.apache.tomcat.util.digester.Digester
Method:endDocument()

What's the purpose of the following code block. I think it is same as "stack.clear()" in method clear().
    while (getCount() > 1) {
  pop();
    }





13621135641@163.com

Re: a small question of org.apache.tomcat.util.digester.Digester

Posted by Mark Thomas <ma...@apache.org>.
On 12/12/2016 12:01, \u03a1 wrote:
> Hi
> 
>     when I read the code of Tomcat 9. I have the following question.
> 
> CLassorg.apache.tomcat.util.digester.Digester
> MethodendDocument()
> 
> What's the purpose of the following code block. I think it is same as "stack.clear()" in method clear().
>     while (getCount() > 1) {
>   pop();
>     }

Take another look. They are not the same.

Mark


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