PMD Results
The following document contains the results of PMD 6.49.0.
Violations By Priority
Priority 2
org/apache/maven/shared/utils/io/SelectorUtils.java
Rule | Violation | Line |
---|---|---|
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 299 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 460 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 653 |
Priority 3
org/apache/maven/shared/utils/StringUtils.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 934–936 |
org/apache/maven/shared/utils/cli/Commandline.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 282–288 |
org/apache/maven/shared/utils/io/FileUtils.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 1456–1458 |
org/apache/maven/shared/utils/io/SelectorUtils.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 490–493 |
org/apache/maven/shared/utils/logging/MessageUtils.java
Rule | Violation | Line |
---|---|---|
SimplifiedTernary | Ternary operators that can be simplified with || or && | 114 |
org/apache/maven/shared/utils/xml/Xpp3Dom.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'DEFAULT_CHILDREN_COMBINATION_MODE'. | 65 |
UnusedPrivateField | Avoid unused private fields such as 'DEFAULT_SELF_COMBINATION_MODE'. | 83 |
Priority 4
org/apache/maven/shared/utils/Os.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 302–307 |
org/apache/maven/shared/utils/PathTool.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 158 |
UselessParentheses | Useless parentheses. | 159 |
UselessParentheses | Useless parentheses. | 165 |
UselessParentheses | Useless parentheses. | 166 |
org/apache/maven/shared/utils/PropertyUtils.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Properties' due to existing import 'java.util.Properties' | 52 |
org/apache/maven/shared/utils/StringUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 77 |
UselessParentheses | Useless parentheses. | 90 |
UselessParentheses | Useless parentheses. | 122 |
UselessParentheses | Useless parentheses. | 122 |
UselessParentheses | Useless parentheses. | 122 |
UselessParentheses | Useless parentheses. | 137 |
UselessParentheses | Useless parentheses. | 137 |
UselessParentheses | Useless parentheses. | 137 |
UselessParentheses | Useless parentheses. | 212 |
UselessParentheses | Useless parentheses. | 229 |
UselessParentheses | Useless parentheses. | 243 |
UselessParentheses | Useless parentheses. | 243 |
UselessParentheses | Useless parentheses. | 275 |
UselessParentheses | Useless parentheses. | 275 |
UselessParentheses | Useless parentheses. | 386 |
UselessParentheses | Useless parentheses. | 386 |
UselessParentheses | Useless parentheses. | 409 |
UselessParentheses | Useless parentheses. | 409 |
UselessParentheses | Useless parentheses. | 431 |
UselessParentheses | Useless parentheses. | 431 |
UselessParentheses | Useless parentheses. | 431 |
UselessParentheses | Useless parentheses. | 431 |
UselessParentheses | Useless parentheses. | 505 |
UselessParentheses | Useless parentheses. | 505 |
UselessParentheses | Useless parentheses. | 514 |
UselessParentheses | Useless parentheses. | 514 |
UselessParentheses | Useless parentheses. | 567 |
UselessParentheses | Useless parentheses. | 699 |
UselessParentheses | Useless parentheses. | 699 |
UselessParentheses | Useless parentheses. | 699 |
UselessParentheses | Useless parentheses. | 699 |
UselessParentheses | Useless parentheses. | 1191 |
UselessParentheses | Useless parentheses. | 1191 |
UselessParentheses | Useless parentheses. | 1219 |
UselessParentheses | Useless parentheses. | 1223 |
UselessParentheses | Useless parentheses. | 1223 |
UselessParentheses | Useless parentheses. | 1250 |
UselessParentheses | Useless parentheses. | 1254 |
UselessParentheses | Useless parentheses. | 1254 |
UselessParentheses | Useless parentheses. | 1559 |
UselessParentheses | Useless parentheses. | 1583 |
UselessParentheses | Useless parentheses. | 1583 |
UselessParentheses | Useless parentheses. | 1630 |
UselessParentheses | Useless parentheses. | 1630 |
UselessParentheses | Useless parentheses. | 1849 |
UselessParentheses | Useless parentheses. | 1849 |
UselessParentheses | Useless parentheses. | 1854 |
UselessParentheses | Useless parentheses. | 1854 |
UselessParentheses | Useless parentheses. | 1974 |
org/apache/maven/shared/utils/cli/CommandLineUtils.java
Rule | Violation | Line |
---|---|---|
DontCallThreadRun | Dont call Thread.run() explicitly, use Thread.start() | 337 |
UselessParentheses | Useless parentheses. | 378 |
UselessParentheses | Useless parentheses. | 378 |
UselessParentheses | Useless parentheses. | 454 |
UselessParentheses | Useless parentheses. | 454 |
UselessParentheses | Useless parentheses. | 467 |
UselessParentheses | Useless parentheses. | 467 |
org/apache/maven/shared/utils/cli/Commandline.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 93 |
UselessParentheses | Useless parentheses. | 280 |
org/apache/maven/shared/utils/cli/shell/BourneShell.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 60 |
UselessParentheses | Useless parentheses. | 76 |
org/apache/maven/shared/utils/cli/shell/Shell.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 288 |
UselessParentheses | Useless parentheses. | 288 |
org/apache/maven/shared/utils/introspection/MethodMap.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 411 |
org/apache/maven/shared/utils/io/FileUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 169 |
UselessParentheses | Useless parentheses. | 183 |
UselessParentheses | Useless parentheses. | 953 |
UselessParentheses | Useless parentheses. | 989 |
org/apache/maven/shared/utils/io/SelectorUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 285 |
UselessParentheses | Useless parentheses. | 286 |
UselessParentheses | Useless parentheses. | 447 |
UselessParentheses | Useless parentheses. | 448 |
UselessParentheses | Useless parentheses. | 639 |
UselessParentheses | Useless parentheses. | 640 |
org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 171 |
Files
org/apache/maven/shared/utils/Os.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 302–307 |
org/apache/maven/shared/utils/PathTool.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 158 |
UselessParentheses | Useless parentheses. | 4 | 159 |
UselessParentheses | Useless parentheses. | 4 | 165 |
UselessParentheses | Useless parentheses. | 4 | 166 |
org/apache/maven/shared/utils/PropertyUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Properties' due to existing import 'java.util.Properties' | 4 | 52 |
org/apache/maven/shared/utils/StringUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 77 |
UselessParentheses | Useless parentheses. | 4 | 90 |
UselessParentheses | Useless parentheses. | 4 | 122 |
UselessParentheses | Useless parentheses. | 4 | 122 |
UselessParentheses | Useless parentheses. | 4 | 122 |
UselessParentheses | Useless parentheses. | 4 | 137 |
UselessParentheses | Useless parentheses. | 4 | 137 |
UselessParentheses | Useless parentheses. | 4 | 137 |
UselessParentheses | Useless parentheses. | 4 | 212 |
UselessParentheses | Useless parentheses. | 4 | 229 |
UselessParentheses | Useless parentheses. | 4 | 243 |
UselessParentheses | Useless parentheses. | 4 | 243 |
UselessParentheses | Useless parentheses. | 4 | 275 |
UselessParentheses | Useless parentheses. | 4 | 275 |
UselessParentheses | Useless parentheses. | 4 | 386 |
UselessParentheses | Useless parentheses. | 4 | 386 |
UselessParentheses | Useless parentheses. | 4 | 409 |
UselessParentheses | Useless parentheses. | 4 | 409 |
UselessParentheses | Useless parentheses. | 4 | 431 |
UselessParentheses | Useless parentheses. | 4 | 431 |
UselessParentheses | Useless parentheses. | 4 | 431 |
UselessParentheses | Useless parentheses. | 4 | 431 |
UselessParentheses | Useless parentheses. | 4 | 505 |
UselessParentheses | Useless parentheses. | 4 | 505 |
UselessParentheses | Useless parentheses. | 4 | 514 |
UselessParentheses | Useless parentheses. | 4 | 514 |
UselessParentheses | Useless parentheses. | 4 | 567 |
UselessParentheses | Useless parentheses. | 4 | 699 |
UselessParentheses | Useless parentheses. | 4 | 699 |
UselessParentheses | Useless parentheses. | 4 | 699 |
UselessParentheses | Useless parentheses. | 4 | 699 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 934–936 |
UselessParentheses | Useless parentheses. | 4 | 1191 |
UselessParentheses | Useless parentheses. | 4 | 1191 |
UselessParentheses | Useless parentheses. | 4 | 1219 |
UselessParentheses | Useless parentheses. | 4 | 1223 |
UselessParentheses | Useless parentheses. | 4 | 1223 |
UselessParentheses | Useless parentheses. | 4 | 1250 |
UselessParentheses | Useless parentheses. | 4 | 1254 |
UselessParentheses | Useless parentheses. | 4 | 1254 |
UselessParentheses | Useless parentheses. | 4 | 1559 |
UselessParentheses | Useless parentheses. | 4 | 1583 |
UselessParentheses | Useless parentheses. | 4 | 1583 |
UselessParentheses | Useless parentheses. | 4 | 1630 |
UselessParentheses | Useless parentheses. | 4 | 1630 |
UselessParentheses | Useless parentheses. | 4 | 1849 |
UselessParentheses | Useless parentheses. | 4 | 1849 |
UselessParentheses | Useless parentheses. | 4 | 1854 |
UselessParentheses | Useless parentheses. | 4 | 1854 |
UselessParentheses | Useless parentheses. | 4 | 1974 |
org/apache/maven/shared/utils/cli/CommandLineUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
DontCallThreadRun | Dont call Thread.run() explicitly, use Thread.start() | 4 | 337 |
UselessParentheses | Useless parentheses. | 4 | 378 |
UselessParentheses | Useless parentheses. | 4 | 378 |
UselessParentheses | Useless parentheses. | 4 | 454 |
UselessParentheses | Useless parentheses. | 4 | 454 |
UselessParentheses | Useless parentheses. | 4 | 467 |
UselessParentheses | Useless parentheses. | 4 | 467 |
org/apache/maven/shared/utils/cli/Commandline.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 93 |
UselessParentheses | Useless parentheses. | 4 | 280 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 282–288 |
org/apache/maven/shared/utils/cli/shell/BourneShell.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 60 |
UselessParentheses | Useless parentheses. | 4 | 76 |
org/apache/maven/shared/utils/cli/shell/Shell.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 288 |
UselessParentheses | Useless parentheses. | 4 | 288 |
org/apache/maven/shared/utils/introspection/MethodMap.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 411 |
org/apache/maven/shared/utils/io/FileUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 169 |
UselessParentheses | Useless parentheses. | 4 | 183 |
UselessParentheses | Useless parentheses. | 4 | 953 |
UselessParentheses | Useless parentheses. | 4 | 989 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 1456–1458 |
org/apache/maven/shared/utils/io/SelectorUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 285 |
UselessParentheses | Useless parentheses. | 4 | 286 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 299 |
UselessParentheses | Useless parentheses. | 4 | 447 |
UselessParentheses | Useless parentheses. | 4 | 448 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 460 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 490–493 |
UselessParentheses | Useless parentheses. | 4 | 639 |
UselessParentheses | Useless parentheses. | 4 | 640 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 653 |
org/apache/maven/shared/utils/logging/MessageUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 114 |
org/apache/maven/shared/utils/xml/Xpp3Dom.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'DEFAULT_CHILDREN_COMBINATION_MODE'. | 3 | 65 |
UnusedPrivateField | Avoid unused private fields such as 'DEFAULT_SELF_COMBINATION_MODE'. | 3 | 83 |
org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 171 |