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/catalog/api/Constraint.java

Violation Line
No need to import a type that lives in the same package 22

org/apache/logging/log4j/catalog/api/ConstraintType.java

Violation Line
Avoid modifiers which are implied by the context 32

org/apache/logging/log4j/catalog/api/Type.java

Violation Line
Avoid unused private fields such as 'typeName'. 24

org/apache/logging/log4j/catalog/api/annotation/ConditionOnPropertyExists.java

Violation Line
Avoid modifiers which are implied by the context 36

org/apache/logging/log4j/catalog/api/annotation/JdbcUrl.java

Violation Line
Avoid modifiers which are implied by the context 36

org/apache/logging/log4j/catalog/api/dao/ClassPathCatalogReader.java

Violation Line
Avoid unused private fields such as 'BASEDIR'. 44

org/apache/logging/log4j/catalog/api/dao/FileCatalogReader.java

Violation Line
Avoid unused private fields such as 'lastUpdated'. 47

org/apache/logging/log4j/catalog/api/plugins/ConstraintTypeSerializer.java

Violation Line
Avoid unused imports such as 'com.fasterxml.jackson.core.JsonParser' 21
Avoid unused imports such as 'com.fasterxml.jackson.core.JsonProcessingException' 22
Avoid unused imports such as 'com.fasterxml.jackson.databind.DeserializationContext' 23
Avoid unused imports such as 'com.fasterxml.jackson.databind.JsonNode' 24
Avoid unused imports such as 'com.fasterxml.jackson.databind.deser.std.StdDeserializer' 26
Avoid unused imports such as 'org.apache.logging.log4j.catalog.api.exception.NameNotFoundException' 29

org/apache/logging/log4j/catalog/api/plugins/PatternConstraint.java

Violation Line
Avoid duplicate imports such as 'org.apache.logging.log4j.catalog.api.util.StringUtils.appendNewline' 21
These nested if statements could be combined 3238

org/apache/logging/log4j/catalog/api/util/StringUtils.java

Violation Line
Unnecessary final modifier in final class 2628