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 empty catch blocks122 - 124
Avoid empty catch blocks129 - 131

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 combined146 - 149
These nested if statements could be combined271 - 297
These nested if statements could be combined272 - 296
These nested if statements could be combined338 - 343
These nested if statements could be combined339 - 342

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 blocks84 - 86
Avoid empty catch blocks95 - 97
Avoid empty catch blocks116 - 118