PMD Results
The following document contains the results of PMD 6.42.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 | 196–198 |
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 |
---|---|---|
EmptyWhileStmt | Avoid empty while statements | 628–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'. | 285 |
EmptyCatchBlock | Avoid empty catch blocks | 373–375 |
CollapsibleIfStatements | These nested if statements could be combined | 724–729 |
org/apache/maven/index/updater/IndexDataReader.java
Rule | Violation | Line |
---|---|---|
EmptyIfStmt | Avoid empty if statements | 106–108 |
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. | 95 |
UselessParentheses | Useless parentheses. | 96 |
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. | 280 |
UselessParentheses | Useless parentheses. | 280 |
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 | 95 |
UselessParentheses | Useless parentheses. | 4 | 96 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 196–198 |
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 |
---|---|---|---|
EmptyWhileStmt | Avoid empty while statements | 3 | 628–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 | 285 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 373–375 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 724–729 |
org/apache/maven/index/updater/IndexDataReader.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyIfStmt | Avoid empty if statements | 3 | 106–108 |
UselessParentheses | Useless parentheses. | 4 | 280 |
UselessParentheses | Useless parentheses. | 4 | 280 |
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 |