PMD Results
The following document contains the results of PMD 6.55.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 | These nested if statements could be combined | 226–228 |
org/apache/maven/index/DefaultQueryCreator.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 132–137 |
org/apache/maven/index/DefaultSearchEngine.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 165–167 |
CollapsibleIfStatements | These nested if statements could be combined | 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 | These nested if statements could be combined | 468–470 |
org/apache/maven/index/context/MergedIndexingContext.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 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'. | 241 |
EmptyCatchBlock | Avoid empty catch blocks | 308–309 |
CollapsibleIfStatements | These nested if statements could be combined | 589–593 |
org/apache/maven/index/updater/IndexDataWriter.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 135–137 |
CollapsibleIfStatements | These nested if statements could be combined | 143–145 |
Priority 4
org/apache/maven/index/DefaultIteratorResultSet.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 122–124 |
UselessParentheses | Useless parentheses. | 200 |
UselessParentheses | Useless parentheses. | 200 |
UselessParentheses | Useless parentheses. | 200 |
UselessParentheses | Useless parentheses. | 369 |
UselessParentheses | Useless parentheses. | 369 |
org/apache/maven/index/OneLineFragmenter.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 36 |
UselessParentheses | Useless parentheses. | 36 |
org/apache/maven/index/artifact/M2GavCalculator.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 92 |
UselessParentheses | Useless parentheses. | 93 |
org/apache/maven/index/creator/JarFileContentsIndexCreator.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 167 |
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. | 456 |
UselessParentheses | Useless parentheses. | 456 |
org/apache/maven/index/updater/IndexDataWriter.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 207 |
UselessParentheses | Useless parentheses. | 207 |
UselessParentheses | Useless parentheses. | 226 |
UselessParentheses | Useless parentheses. | 226 |
UselessParentheses | Useless parentheses. | 234 |
UselessParentheses | Useless parentheses. | 234 |
Files
org/apache/maven/index/ArtifactContext.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty if statement | 3 | 110–114 |
org/apache/maven/index/DefaultIteratorResultSet.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 122–124 |
UselessParentheses | Useless parentheses. | 4 | 200 |
UselessParentheses | Useless parentheses. | 4 | 200 |
UselessParentheses | Useless parentheses. | 4 | 200 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 226–228 |
UselessParentheses | Useless parentheses. | 4 | 369 |
UselessParentheses | Useless parentheses. | 4 | 369 |
org/apache/maven/index/DefaultQueryCreator.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 132–137 |
org/apache/maven/index/DefaultSearchEngine.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 165–167 |
CollapsibleIfStatements | These nested if statements could be combined | 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/OneLineFragmenter.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 36 |
UselessParentheses | Useless parentheses. | 4 | 36 |
org/apache/maven/index/artifact/M2GavCalculator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 92 |
UselessParentheses | Useless parentheses. | 4 | 93 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 222–223 |
org/apache/maven/index/context/DefaultIndexingContext.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 468–470 |
org/apache/maven/index/context/MergedIndexingContext.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 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/JarFileContentsIndexCreator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 167 |
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 | 241 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 308–309 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 589–593 |
org/apache/maven/index/updater/IndexDataReader.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 456 |
UselessParentheses | Useless parentheses. | 4 | 456 |
org/apache/maven/index/updater/IndexDataWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 135–137 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 143–145 |
UselessParentheses | Useless parentheses. | 4 | 207 |
UselessParentheses | Useless parentheses. | 4 | 207 |
UselessParentheses | Useless parentheses. | 4 | 226 |
UselessParentheses | Useless parentheses. | 4 | 226 |
UselessParentheses | Useless parentheses. | 4 | 234 |
UselessParentheses | Useless parentheses. | 4 | 234 |