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/LogBuilder.java

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

org/apache/logging/log4j/ThreadContext.java

Violation Priority Line
Useless parentheses. 4 93

org/apache/logging/log4j/internal/DefaultLogBuilder.java

Violation Priority Line
Avoid unused imports such as 'java.io.Serializable' 4 19
Avoid unused private fields such as 'EMPTY_MESSAGE'. 3 38

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 2000
Useless parentheses. 4 2006
Useless parentheses. 4 2916

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

Violation Priority Line
Avoid unused imports such as 'java.util.WeakHashMap' 4 22

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

Violation Priority Line
Avoid unused imports such as 'org.apache.logging.log4j.status.StatusLogger' 4 22

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

Violation Priority Line
Overriding method merely calls super 3 6668

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/PropertiesUtil.java

Violation Priority Line
Avoid unused private fields such as 'SYSTEM'. 3 53
Avoid empty catch blocks 3 440442
Avoid empty catch blocks 3 449453

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
Avoid unused imports such as 'org.apache.logging.log4j.LogBuilder' 4 22

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

Violation Priority Line
Avoid unused imports such as 'org.apache.logging.log4j.LogBuilder' 4 22

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

Violation Priority Line
Useless parentheses. 4 66
Useless parentheses. 4 274