PMD Results
The following document contains the results of PMD 7.7.0.
Violations By Priority
Priority 3
org/apache/maven/index/ArtifactContext.java
| Rule | Violation | Line | 
|---|---|---|
| EmptyControlStatement | Empty if statement | 110–114 | 
org/apache/maven/index/DefaultIteratorResultSet.java
| Rule | Violation | Line | 
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 226–228 | 
org/apache/maven/index/DefaultQueryCreator.java
| Rule | Violation | Line | 
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 132–137 | 
org/apache/maven/index/DefaultSearchEngine.java
| Rule | Violation | Line | 
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 165–167 | 
| CollapsibleIfStatements | This if statement could be combined with its parent | 213–215 | 
org/apache/maven/index/IndexerField.java
| Rule | Violation | Line | 
|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'description'. | 78 | 
org/apache/maven/index/artifact/M2GavCalculator.java
| Rule | Violation | Line | 
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 222–223 | 
org/apache/maven/index/context/DefaultIndexingContext.java
| Rule | Violation | Line | 
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 468–470 | 
org/apache/maven/index/context/MergedIndexingContext.java
| Rule | Violation | Line | 
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 148–150 | 
org/apache/maven/index/context/NexusIndexWriter.java
| Rule | Violation | Line | 
|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'create'. | 42 | 
org/apache/maven/index/creator/OsgiArtifactIndexCreator.java
| Rule | Violation | Line | 
|---|---|---|
| EmptyControlStatement | Empty while statement | 567–569 | 
| EmptyCatchBlock | Avoid empty catch blocks | 579–580 | 
org/apache/maven/index/updater/DefaultIndexUpdater.java
| Rule | Violation | Line | 
|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 'success'. | 242 | 
| EmptyCatchBlock | Avoid empty catch blocks | 309–310 | 
| CollapsibleIfStatements | This if statement could be combined with its parent | 590–594 | 
org/apache/maven/index/updater/IndexDataWriter.java
| Rule | Violation | Line | 
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 135–137 | 
| CollapsibleIfStatements | This if statement could be combined with its parent | 143–145 | 
Priority 4
org/apache/maven/index/ArtifactInfo.java
| Rule | Violation | Line | 
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ArtifactInfo': 'ArtifactInfoRecord::FS' is already in scope because it is inherited by an enclosing type | 518 | 
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ArtifactInfo': 'ArtifactInfoRecord::FS_PATTERN' is already in scope because it is inherited by an enclosing type | 524 | 
org/apache/maven/index/artifact/Gav.java
| Rule | Violation | Line | 
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SignatureType': 'gpg' is already in scope because it is declared in an enclosing type | 48 | 
org/apache/maven/index/treeview/TreeViewRequest.java
| Rule | Violation | Line | 
|---|---|---|
| UselessParentheses | Useless parentheses. | 86 | 
org/apache/maven/index/updater/IndexDataReader.java
| Rule | Violation | Line | 
|---|---|---|
| UselessParentheses | Useless parentheses. | 326 | 
| UselessParentheses | Useless parentheses. | 459 | 
org/apache/maven/index/updater/IndexDataWriter.java
| Rule | Violation | Line | 
|---|---|---|
| UselessParentheses | Useless parentheses. | 240 | 
| UselessParentheses | Useless parentheses. | 243 | 
Files
org/apache/maven/index/ArtifactContext.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| EmptyControlStatement | Empty if statement | 3 | 110–114 | 
org/apache/maven/index/ArtifactInfo.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ArtifactInfo': 'ArtifactInfoRecord::FS' is already in scope because it is inherited by an enclosing type | 4 | 518 | 
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ArtifactInfo': 'ArtifactInfoRecord::FS_PATTERN' is already in scope because it is inherited by an enclosing type | 4 | 524 | 
org/apache/maven/index/DefaultIteratorResultSet.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 226–228 | 
org/apache/maven/index/DefaultQueryCreator.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 132–137 | 
org/apache/maven/index/DefaultSearchEngine.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 165–167 | 
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 213–215 | 
org/apache/maven/index/IndexerField.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'description'. | 3 | 78 | 
org/apache/maven/index/artifact/Gav.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SignatureType': 'gpg' is already in scope because it is declared in an enclosing type | 4 | 48 | 
org/apache/maven/index/artifact/M2GavCalculator.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 222–223 | 
org/apache/maven/index/context/DefaultIndexingContext.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 468–470 | 
org/apache/maven/index/context/MergedIndexingContext.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 148–150 | 
org/apache/maven/index/context/NexusIndexWriter.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| UnusedFormalParameter | Avoid unused constructor parameters such as 'create'. | 3 | 42 | 
org/apache/maven/index/creator/OsgiArtifactIndexCreator.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| EmptyControlStatement | Empty while statement | 3 | 567–569 | 
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 579–580 | 
org/apache/maven/index/treeview/TreeViewRequest.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| UselessParentheses | Useless parentheses. | 4 | 86 | 
org/apache/maven/index/updater/DefaultIndexUpdater.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 'success'. | 3 | 242 | 
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 309–310 | 
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 590–594 | 
org/apache/maven/index/updater/IndexDataReader.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| UselessParentheses | Useless parentheses. | 4 | 326 | 
| UselessParentheses | Useless parentheses. | 4 | 459 | 
org/apache/maven/index/updater/IndexDataWriter.java
| Rule | Violation | Priority | Line | 
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 135–137 | 
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 143–145 | 
| UselessParentheses | Useless parentheses. | 4 | 240 | 
| UselessParentheses | Useless parentheses. | 4 | 243 | 


