This content has been marked as final.
Show 4 replies
-
1. Re: Can it be a final static?
gaohoward Jan 9, 2009 9:57 AM (in response to gaohoward)Sorry, should be
public class JMSClientVMIdentifier { public static final String instance = GUIDGenerator.generateGUID(); }
-
2. Re: Can it be a final static?
timfox Jan 9, 2009 10:03 AM (in response to gaohoward)It help us if you explain why you think it should be changed thus.
-
3. Re: Can it be a final static?
gaohoward Jan 9, 2009 10:28 AM (in response to gaohoward)This static is used to identify a JBM process, not only client processes use it, but also the Postoffice use it. So once it is initialized it should never be changed as long as the process is alive. So make it final would be more proper. It will forbid any attempt to change it.
-
4. Re: Can it be a final static?
timfox Jan 9, 2009 10:29 AM (in response to gaohoward)"gaohoward" wrote:
This static is used to identify a JBM process, not only client processes use it, but also the Postoffice use it. So once it is initialized it should never be changed as long as the process is alive. So make it final would be more proper. It will forbid any attempt to change it.
Ok sure, but it's not a big deal - nothing does change it.