On 08/02/2011 14:56, Konstantin Kolinko wrote: > 2011/2/8 <ma...@apache.org>: >> Author: markt >> Date: Tue Feb 8 14:28:30 2011 >> New Revision: 1068415 >> >> URL: http://svn.apache.org/viewvc?rev=1068415&view=rev >> Log: >> Improve comments >> >> Modified: >> tomcat/trunk/java/org/apache/catalina/util/LifecycleMBeanBase.java >> > >> + * Note: This method should only be used once {@link #initInternal()} >> has >> + * been called and before {@link #destroyInternal()} has been called. > >> + * Note: This method should only be used once {@link #initInternal()} >> has >> + * been called and before {@link #destroyInternal()} has been called. > > Is this call condition meant to be explicitly enforced?
No. These were more notes for the developer. That is why I used the word 'should' in the comment. > (Or the method already fails if it is called before initInternal() / > after destroyInternal() ? You'll get NPEs in some cases. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org