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

2016-12-12 Thread Mark Thomas
On 12/12/2016 12:01, 储巍 wrote:
> 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();
> }

Take another look. They are not the same.

Mark


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



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

2016-12-12 Thread 储巍
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();
}





13621135...@163.com