Fork me on GitHub

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. 778

Priority 3

org/apache/maven/surefire/junitplatform/DefaultStackTraceWriter.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 8991

org/apache/maven/surefire/junitplatform/JUnit4ListenersAdapter.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 207209

org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19806
CollapsibleIfStatements This if statement could be combined with its parent 496501
CollapsibleIfStatements This if statement could be combined with its parent 509512
CollapsibleIfStatements This if statement could be combined with its parent 530535
CollapsibleIfStatements This if statement could be combined with its parent 543546

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 19542

Priority 4

org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Optional': 'of' is already in scope 583
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Optional': 'empty' is already in scope 585
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toList' is already in scope 595
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toList' is already in scope 609
UselessParentheses Useless parentheses around `patIdxTmp - patIdxStart - 1`. 764
UselessParentheses Useless parentheses around `strIdxEnd - strIdxStart + 1`. 765

Files

org/apache/maven/surefire/junitplatform/DefaultStackTraceWriter.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 8991

org/apache/maven/surefire/junitplatform/JUnit4ListenersAdapter.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 207209

org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19806
CollapsibleIfStatements This if statement could be combined with its parent 3 496501
CollapsibleIfStatements This if statement could be combined with its parent 3 509512
CollapsibleIfStatements This if statement could be combined with its parent 3 530535
CollapsibleIfStatements This if statement could be combined with its parent 3 543546
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Optional': 'of' is already in scope 4 583
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Optional': 'empty' is already in scope 4 585
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toList' is already in scope 4 595
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Collectors': 'toList' is already in scope 4 609
UselessParentheses Useless parentheses around `patIdxTmp - patIdxStart - 1`. 4 764
UselessParentheses Useless parentheses around `strIdxEnd - strIdxStart + 1`. 4 765
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 778

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 19542