Apache logging services logo Apache log4j logo

PMD Results

The following document contains the results of PMD 4.3.

Files

org/apache/logging/log4j/message/BasicThreadInformation.java

ViolationLine
Avoid unused private fields such as 'longName'.27
Avoid unused private fields such as 'isAlive'.30

org/apache/logging/log4j/message/FormattedMessage.java

ViolationLine
Avoid unused private fields such as 'LOGGER'.36
Avoid empty catch blocks128 - 130
Avoid empty catch blocks135 - 137

org/apache/logging/log4j/message/ParameterizedMessage.java

ViolationLine
These nested if statements could be combined140 - 143
These nested if statements could be combined259 - 285
These nested if statements could be combined260 - 284
These nested if statements could be combined326 - 331
These nested if statements could be combined327 - 330

org/apache/logging/log4j/message/ThreadDumpMessage.java

ViolationLine
Avoid unused method parameters such as 'stream'.126 - 129

org/apache/logging/log4j/simple/SimpleLoggerContext.java

ViolationLine
Avoid unused private fields such as 'simpleLogProps'.45

org/apache/logging/log4j/util/PropertiesUtil.java

ViolationLine
Avoid empty catch blocks45 - 47
Avoid empty catch blocks50 - 52
Avoid empty catch blocks65 - 67
Avoid empty catch blocks76 - 78
Avoid empty catch blocks97 - 99

org/apache/logging/log4j/util/ProviderUtil.java

ViolationLine
Avoid using java.lang.ThreadGroup; it is not thread safe90