Rule Set: Jakarta Commons Logging
(ProperLogger)
Description:
private static final org.apache.commons.logging.Log LOG = LogFactory.getLog(MyEnum.class);
leads to warning Logger should be defined private static final and have the correct class. inside enums although it seems to be referencing the correct class/enum.
Code Sample demonstrating the issue:
public enum ExampleEnum {
A,
B,
C;
private static final Log LOG = LogFactory.getLog(ExampleEnum.class);
}
Running PMD through: Ant
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4