PMD Results
The following document contains the results of PMD 6.46.0.
Violations By Priority
Priority 3
org/apache/maven/index/DefaultIteratorResultSet.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 248–251 |
org/apache/maven/index/DefaultQueryCreator.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 151–155 |
org/apache/maven/index/DefaultSearchEngine.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 177–180 |
CollapsibleIfStatements | These nested if statements could be combined | 232–235 |
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 | 208–210 |
org/apache/maven/index/context/DefaultIndexingContext.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 505–508 |
org/apache/maven/index/context/MergedIndexingContext.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 152–155 |
org/apache/maven/index/context/NexusIndexWriter.java
Rule | Violation | Line |
---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'create'. | 46 |
org/apache/maven/index/creator/OsgiArtifactIndexCreator.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty while statement | 627–630 |
EmptyCatchBlock | Avoid empty catch blocks | 642–644 |
org/apache/maven/index/updater/DefaultIndexUpdater.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'success'. | 287 |
EmptyCatchBlock | Avoid empty catch blocks | 375–377 |
CollapsibleIfStatements | These nested if statements could be combined | 728–733 |
org/apache/maven/index/updater/IndexDataWriter.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 147–150 |
CollapsibleIfStatements | These nested if statements could be combined | 160–163 |
Priority 4
org/apache/maven/index/DefaultIteratorResultSet.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 128–129 |
UselessParentheses | Useless parentheses. | 222 |
UselessParentheses | Useless parentheses. | 222 |
UselessParentheses | Useless parentheses. | 222 |
UselessParentheses | Useless parentheses. | 416 |
UselessParentheses | Useless parentheses. | 416 |
org/apache/maven/index/OneLineFragmenter.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 42 |
UselessParentheses | Useless parentheses. | 42 |
org/apache/maven/index/artifact/M2GavCalculator.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 107 |
UselessParentheses | Useless parentheses. | 108 |
org/apache/maven/index/creator/JarFileContentsIndexCreator.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 191 |
org/apache/maven/index/treeview/TreeViewRequest.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 93 |
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. | 241 |
UselessParentheses | Useless parentheses. | 241 |
UselessParentheses | Useless parentheses. | 266 |
UselessParentheses | Useless parentheses. | 266 |
UselessParentheses | Useless parentheses. | 276 |
UselessParentheses | Useless parentheses. | 276 |
Files
org/apache/maven/index/DefaultIteratorResultSet.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 128–129 |
UselessParentheses | Useless parentheses. | 4 | 222 |
UselessParentheses | Useless parentheses. | 4 | 222 |
UselessParentheses | Useless parentheses. | 4 | 222 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 248–251 |
UselessParentheses | Useless parentheses. | 4 | 416 |
UselessParentheses | Useless parentheses. | 4 | 416 |
org/apache/maven/index/DefaultQueryCreator.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 151–155 |
org/apache/maven/index/DefaultSearchEngine.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 177–180 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 232–235 |
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 | 42 |
UselessParentheses | Useless parentheses. | 4 | 42 |
org/apache/maven/index/artifact/M2GavCalculator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 107 |
UselessParentheses | Useless parentheses. | 4 | 108 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 208–210 |
org/apache/maven/index/context/DefaultIndexingContext.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 505–508 |
org/apache/maven/index/context/MergedIndexingContext.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 152–155 |
org/apache/maven/index/context/NexusIndexWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedFormalParameter | Avoid unused constructor parameters such as 'create'. | 3 | 46 |
org/apache/maven/index/creator/JarFileContentsIndexCreator.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 191 |
org/apache/maven/index/creator/OsgiArtifactIndexCreator.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty while statement | 3 | 627–630 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 642–644 |
org/apache/maven/index/treeview/TreeViewRequest.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 93 |
org/apache/maven/index/updater/DefaultIndexUpdater.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'success'. | 3 | 287 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 375–377 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 728–733 |
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 | 147–150 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 160–163 |
UselessParentheses | Useless parentheses. | 4 | 241 |
UselessParentheses | Useless parentheses. | 4 | 241 |
UselessParentheses | Useless parentheses. | 4 | 266 |
UselessParentheses | Useless parentheses. | 4 | 266 |
UselessParentheses | Useless parentheses. | 4 | 276 |
UselessParentheses | Useless parentheses. | 4 | 276 |