PMD Results
The following document contains the results of PMD 6.4.0.
Files
org/apache/log4j/AppenderSkeleton.java
Violation |
Priority |
Line |
Avoid unused constructor parameters such as 'isActive'. |
3 |
50 |
Useless parentheses. |
4 |
108 |
Useless parentheses. |
4 |
108 |
org/apache/log4j/Category.java
Violation |
Priority |
Line |
Ternary operators that can be simplified with || or && |
3 |
392 |
Unnecessary use of fully qualified name 'org.apache.logging.log4j.spi.LoggerContext' due to existing import 'org.apache.logging.log4j.spi.LoggerContext' |
4 |
505 |
Unnecessary use of fully qualified name 'org.apache.logging.log4j.spi.LoggerContext' due to existing import 'org.apache.logging.log4j.spi.LoggerContext' |
4 |
510 |
org/apache/log4j/LogManager.java
Violation |
Priority |
Line |
Avoid empty catch blocks |
3 |
75–77 |
org/apache/log4j/PatternLayout.java
Violation |
Priority |
Line |
Avoid unused constructor parameters such as 'pattern'. |
3 |
27 |
org/apache/log4j/config/Log4j1ConfigurationConverter.java
Violation |
Priority |
Line |
Avoid modifiers which are implied by the context |
3 |
179 |
Avoid modifiers which are implied by the context |
3 |
180 |
Avoid modifiers which are implied by the context |
3 |
205 |
Avoid modifiers which are implied by the context |
3 |
205 |
org/apache/log4j/config/Log4j1ConfigurationFactory.java
Violation |
Priority |
Line |
Avoid modifiers which are implied by the context |
3 |
45 |
org/apache/log4j/config/Log4j1ConfigurationParser.java
Violation |
Priority |
Line |
These nested if statements could be combined |
3 |
151–157 |
Avoid unused private methods such as 'buildAttributeWithDefault(String,ComponentBuilder,String,String,String)'. |
3 |
268–269 |
org/apache/log4j/config/PropertySetter.java
Violation |
Priority |
Line |
Avoid unused constructor parameters such as 'obj'. |
3 |
34 |
|