tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: svn commit: r1068415 - /tomcat/trunk/java/org/apache/catalina/util/LifecycleMBeanBase.java
Date Tue, 08 Feb 2011 18:55:37 GMT
On 08/02/2011 14:56, Konstantin Kolinko wrote:
> 2011/2/8  <markt@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message