PMD Results
The following document contains the results of PMD 5.6.1.
Files
org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
Violation |
Line |
Too many static imports may lead to messy code |
2–3787 |
Unnecessary use of fully qualified name 'Collections.singletonList' due to existing static import 'java.util.Collections.singletonList' |
1928 |
Avoid empty catch blocks |
2219–2221 |
Unnecessary use of fully qualified name 'Collections.singletonList' due to existing static import 'java.util.Collections.singletonList' |
2573 |
These nested if statements could be combined |
2665–2668 |
These nested if statements could be combined |
2719–2736 |
Unnecessary use of fully qualified name 'Thread.currentThread' due to existing static import 'java.lang.Thread.currentThread' |
3183 |
Unnecessary use of fully qualified name 'Thread.currentThread' due to existing static import 'java.lang.Thread.currentThread' |
3203 |
org/apache/maven/plugin/surefire/SurefireHelper.java
Violation |
Line |
Too many static imports may lead to messy code |
1–284 |
org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java
Violation |
Line |
Too many static imports may lead to messy code |
1–189 |
org/apache/maven/plugin/surefire/booterclient/ChecksumCalculator.java
Violation |
Line |
Useless parentheses. |
137 |
org/apache/maven/plugin/surefire/booterclient/ForkNumberBucket.java
Violation |
Line |
Avoid unused private methods such as 'getHighestDrawnNumber()'. |
85 |
org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
Violation |
Line |
Too many static imports may lead to messy code |
1–803 |
org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java
Violation |
Line |
Too many static imports may lead to messy code |
1–190 |
org/apache/maven/plugin/surefire/booterclient/output/ForkClient.java
Violation |
Line |
Too many static imports may lead to messy code |
1–528 |
org/apache/maven/plugin/surefire/report/DefaultReporterFactory.java
Violation |
Line |
Too many static imports may lead to messy code |
1–489 |
Avoid unused private methods such as 'err(String)'. |
472 |
org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java
Violation |
Line |
Too many static imports may lead to messy code |
1–614 |
org/apache/maven/plugin/surefire/report/TestSetRunListener.java
Violation |
Line |
Useless parentheses. |
315 |
org/apache/maven/plugin/surefire/report/WrappedReportEntry.java
Violation |
Line |
Useless parentheses. |
130 |
org/apache/maven/plugin/surefire/util/ScannerUtil.java
Violation |
Line |
Useless parentheses. |
37 |
org/apache/maven/shared/utils/logging/MessageUtils.java
Violation |
Line |
Ternary operators that can be simplified with || or && |
93 |