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. 118119
Useless parentheses. 119

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
These nested if statements could be combined 160162
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 353355

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 206208
Useless parentheses. 273
Useless parentheses. 274

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