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().

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(); }