Apache logging services logo Apache log4j logo

PMD Results

The following document contains the results of PMD 6.4.0.

Files

org/apache/logging/log4j/Level.java

Violation Priority Line
Useless parentheses. 4 202

org/apache/logging/log4j/ThreadContext.java

Violation Priority Line
Useless parentheses. 4 93

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

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

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

Violation Priority Line
Useless parentheses. 4 193

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

Violation Priority Line
Avoid modifiers which are implied by the context 3 176178

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

Violation Priority Line
Useless parentheses. 4 1991
Useless parentheses. 4 1997

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

Violation Priority Line
Avoid empty catch blocks 3 4547

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

Violation Priority Line
Useless parentheses. 4 46
Useless parentheses. 4 46

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

Violation Priority Line
Avoid modifiers which are implied by the context 3 38

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

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

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

Violation Priority Line
Overriding method merely calls super 3 249251