View by Classes

Findings - Overview

filtered LoggerIsNotStaticFinal (PMD)

The Logger variable declaration does not contain the static and final modifiers

Further info on the wiki.
In most cases, the Logger can be declared static and final.
 
class Foo{
    Logger log = Logger.getLogger(Foo.class.getName());
    // It is much better to declare the logger as follows 
    // static final Logger log = Logger.getLogger(Foo.class.getName());
}

     

Additional info can be found at this http://pmd.sourceforge.net/rules/logging-java.html#LoggerIsNotStaticFinal site.

1org.jcoderz.commons.util.LoggingProxy
 [65:25]