PMD Results
The following document contains the results of PMD 7.17.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 | 1673–1676 |
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 | 334–336 |
org/apache/maven/plugin/compiler/ToolExecutor.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 474–487 |
org/apache/maven/plugin/compiler/ToolExecutorForTest.java
| Rule | Violation | Line |
|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 'r'. | 399 |
Priority 4
org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `File.separatorChar == '\\'`. | 1794 |
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 | 324 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SourceDirectory': 'CLASS_FILE_SUFFIX' is already in scope because it is imported in this file | 324 |
Files
org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 1673–1676 |
| UselessParentheses | Useless parentheses around `File.separatorChar == '\\'`. | 4 | 1794 |
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 | 324 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SourceDirectory': 'CLASS_FILE_SUFFIX' is already in scope because it is imported in this file | 4 | 324 |
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 | 334–336 |
org/apache/maven/plugin/compiler/ToolExecutor.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 474–487 |
org/apache/maven/plugin/compiler/ToolExecutorForTest.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 'r'. | 3 | 399 |


