PMD Results
The following document contains the results of PMD 7.7.0.
Violations By Priority
Priority 3
org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 1630–1645 |
org/apache/maven/plugin/compiler/CompilerMojo.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty try-with-resources statement. Rename the resource to `ignored`, `unused` or `_` (Java 22+). | 200–204 |
UnusedLocalVariable | Avoid unused local variables such as 'r'. | 200 |
org/apache/maven/plugin/compiler/IncrementalBuild.java
Rule | Violation | Line |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'static' on record 'SourceInfo': records are implicitly static | 498 |
org/apache/maven/plugin/compiler/Options.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 153–157 |
org/apache/maven/plugin/compiler/PathSelector.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 225–227 |
org/apache/maven/plugin/compiler/SourceDirectory.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 355–357 |
org/apache/maven/plugin/compiler/ToolExecutor.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 403–416 |
CollapsibleIfStatements | This if statement could be combined with its parent | 669–676 |
org/apache/maven/plugin/compiler/ToolExecutorForTest.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'r'. | 347 |
Priority 4
org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 1756 |
org/apache/maven/plugin/compiler/CompilerMojo.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SourceDirectory': 'MODULE_INFO' is already in scope because it is imported in this file | 322 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SourceDirectory': 'CLASS_FILE_SUFFIX' is already in scope because it is imported in this file | 322 |
org/apache/maven/plugin/compiler/WorkaroundForPatchModule.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 164 |
Files
org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 1630–1645 |
UselessParentheses | Useless parentheses. | 4 | 1756 |
org/apache/maven/plugin/compiler/CompilerMojo.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty try-with-resources statement. Rename the resource to `ignored`, `unused` or `_` (Java 22+). | 3 | 200–204 |
UnusedLocalVariable | Avoid unused local variables such as 'r'. | 3 | 200 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SourceDirectory': 'MODULE_INFO' is already in scope because it is imported in this file | 4 | 322 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SourceDirectory': 'CLASS_FILE_SUFFIX' is already in scope because it is imported in this file | 4 | 322 |
org/apache/maven/plugin/compiler/IncrementalBuild.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'static' on record 'SourceInfo': records are implicitly static | 3 | 498 |
org/apache/maven/plugin/compiler/Options.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 153–157 |
org/apache/maven/plugin/compiler/PathSelector.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 225–227 |
org/apache/maven/plugin/compiler/SourceDirectory.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 355–357 |
org/apache/maven/plugin/compiler/ToolExecutor.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 403–416 |
CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 669–676 |
org/apache/maven/plugin/compiler/ToolExecutorForTest.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'r'. | 3 | 347 |
org/apache/maven/plugin/compiler/WorkaroundForPatchModule.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 164 |