Apache logging services logo Apache log4j logo

PMD Results

The following document contains the results of PMD 5.5.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/ReusableObjectMessage.java

Violation Line
Avoid unused private fields such as 'objectString'. 31

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. 1983
Useless parentheses. 1989

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

Violation Line
Avoid empty catch blocks 203205

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

Violation Line
Avoid empty catch blocks 3638

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

Violation Line
Avoid empty catch blocks 247249

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

Violation Line
Unnecessary use of fully qualified name 'java.io.ObjectOutputStream' due to existing import 'java.io.ObjectOutputStream' 472
Unnecessary use of fully qualified name 'java.io.ObjectInputStream' due to existing import 'java.io.ObjectInputStream' 536
Avoid unused method parameters such as 'key'. 577

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

Violation Line
Avoid unused private fields such as 'SUN_REFLECTION_SUPPORTED'. 56
Avoid unused local variables such as 'test1'. 68
Overriding method merely calls super 251253