Apache logging services logo Apache log4j logo

PMD Results

The following document contains the results of PMD 5.6.1.

Files

org/apache/logging/log4j/Level.java

Violation Line
Useless parentheses. 202

org/apache/logging/log4j/ThreadContext.java

Violation Line
Useless parentheses. 93

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

Violation Line
Avoid unused private fields such as 'longName'. 30
Avoid unused private fields such as 'isAlive'. 33

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

Violation Line
Avoid empty catch blocks 190192
Avoid empty catch blocks 197199

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

Violation Line
Useless parentheses. 193

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

Violation Line
Avoid modifiers which are implied by the context 176178

org/apache/logging/log4j/spi/AbstractLogger.java

Violation Line
Useless parentheses. 1991
Useless parentheses. 1997

org/apache/logging/log4j/status/StatusLogger.java

Violation Line
Avoid empty catch blocks 212214

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

Violation Line
Avoid empty catch blocks 4547

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

Violation Line
Avoid empty catch blocks 118120
Unnecessary use of fully qualified name 'java.io.ObjectOutputStream' due to existing import 'java.io.ObjectOutputStream' 512
Unnecessary use of fully qualified name 'java.io.ObjectInputStream' due to existing import 'java.io.ObjectInputStream' 594
Avoid unused method parameters such as 'key'. 638

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

Violation Line
Overriding method merely calls super 249251