PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 2
org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
| Rule | Violation | Line |
|---|---|---|
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 777 |
Priority 3
org/apache/maven/surefire/junitplatform/DefaultStackTraceWriter.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 89–91 |
org/apache/maven/surefire/junitplatform/JUnit4ListenersAdapter.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 207–209 |
org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 19–805 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 495–500 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 508–511 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 529–534 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 542–545 |
org/apache/maven/surefire/junitplatform/ReverseOrdering.java
| Rule | Violation | Line |
|---|---|---|
| UnusedPrivateMethod | Avoid unused private methods such as 'parameterList(Method)'. | 48 |
org/apache/maven/surefire/junitplatform/RunListenerAdapter.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 19–542 |
Priority 4
org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Optional': 'of' is already in scope | 582 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Optional': 'empty' is already in scope | 584 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Collectors': 'toList' is already in scope | 594 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Collectors': 'toList' is already in scope | 608 |
| UselessParentheses | Useless parentheses around `patIdxTmp - patIdxStart - 1`. | 763 |
| UselessParentheses | Useless parentheses around `strIdxEnd - strIdxStart + 1`. | 764 |
Files
org/apache/maven/surefire/junitplatform/DefaultStackTraceWriter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 89–91 |
org/apache/maven/surefire/junitplatform/JUnit4ListenersAdapter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 207–209 |
org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 19–805 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 495–500 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 508–511 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 529–534 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 542–545 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Optional': 'of' is already in scope | 4 | 582 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Optional': 'empty' is already in scope | 4 | 584 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Collectors': 'toList' is already in scope | 4 | 594 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Collectors': 'toList' is already in scope | 4 | 608 |
| UselessParentheses | Useless parentheses around `patIdxTmp - patIdxStart - 1`. | 4 | 763 |
| UselessParentheses | Useless parentheses around `strIdxEnd - strIdxStart + 1`. | 4 | 764 |
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 777 |
org/apache/maven/surefire/junitplatform/ReverseOrdering.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedPrivateMethod | Avoid unused private methods such as 'parameterList(Method)'. | 3 | 48 |
org/apache/maven/surefire/junitplatform/RunListenerAdapter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 19–542 |


