Apache log4j logo Apache logging services logo

PMD Results

The following document contains the results of PMD 5.6.1.

Files

org/apache/logging/log4j/audit/AbstractEventLogger.java

Violation Line
Avoid unused private fields such as 'logger'. 42
Useless parentheses. 117118
Useless parentheses. 118

org/apache/logging/log4j/audit/AuditMessage.java

Violation Line
Avoid unused constructor parameters such as 'maxLength'. 50

org/apache/logging/log4j/audit/LogEventFactory.java

Violation Line
Avoid unused private fields such as 'DEFAULT_MAX_LENGTH'. 64
These nested if statements could be combined 146148
Avoid unused local variables such as 'returnType'. 322
Avoid unused private methods such as 'isBlank(String)'. 394

org/apache/logging/log4j/audit/annotation/Chained.java

Violation Line
Avoid unused imports such as 'java.util.function.Consumer' 23
Avoid unused imports such as 'java.util.function.Supplier' 24

org/apache/logging/log4j/audit/annotation/ClientServer.java

Violation Line
Avoid unused imports such as 'java.lang.annotation.Repeatable' 20

org/apache/logging/log4j/audit/generator/ClassGenerator.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 27
Avoid unused imports such as 'java.util.TreeSet' 30
These nested if statements could be combined 347349

org/apache/logging/log4j/audit/generator/InterfacesGenerator.java

Violation Line
Avoid unused private fields such as 'CONTEXT'. 67
These nested if statements could be combined 198200
Useless parentheses. 265
Useless parentheses. 266

org/apache/logging/log4j/audit/request/RequestContextMappings.java

Violation Line
Avoid unused imports such as 'org.apache.logging.log4j.audit.annotation.ChainedSupplier' 26

org/apache/logging/log4j/audit/rest/RequestContextFilter.java

Violation Line
Avoid unused imports such as 'java.text.DecimalFormat' 20