Jacob Kjome wrote:

If you make them class static variables, it is the same as marking them as transient. The recommended way to define a logger is probably....


private static final Logger logger = Logger.getLogger(MyClass.class.getName());

Is making it 'final' a performance-related suggestion (i.e., does the compiler optimize anything if you do this), or practice-related (no reason to point the var at a new object)?




Erik


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to