Apache logging services logo Apache log4j logo

PMD Results

The following document contains the results of PMD 5.0.2.

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 blocks131 - 133
Avoid empty catch blocks138 - 140

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

ViolationLine
Useless parentheses.184

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

ViolationLine
These nested if statements could be combined140 - 143
These nested if statements could be combined263 - 289
These nested if statements could be combined264 - 288
These nested if statements could be combined330 - 335
These nested if statements could be combined331 - 334

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

ViolationLine
Avoid unused method parameters such as 'stream'.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