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 110114
org/apache/maven/index/DefaultIteratorResultSet.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 226228
org/apache/maven/index/DefaultQueryCreator.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 132137
org/apache/maven/index/DefaultSearchEngine.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 165167
CollapsibleIfStatements These nested if statements could be combined 213215
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 222223
org/apache/maven/index/context/DefaultIndexingContext.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 468470
org/apache/maven/index/context/MergedIndexingContext.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 148150
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 567569
EmptyCatchBlock Avoid empty catch blocks 579580
org/apache/maven/index/updater/DefaultIndexUpdater.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'success'. 241
EmptyCatchBlock Avoid empty catch blocks 308309
CollapsibleIfStatements These nested if statements could be combined 589593
org/apache/maven/index/updater/IndexDataWriter.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 135137
CollapsibleIfStatements These nested if statements could be combined 143145

Priority 4

org/apache/maven/index/DefaultIteratorResultSet.java
Rule Violation Line
UselessParentheses Useless parentheses. 122124
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 110114

org/apache/maven/index/DefaultIteratorResultSet.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 122124
UselessParentheses Useless parentheses. 4 200
UselessParentheses Useless parentheses. 4 200
UselessParentheses Useless parentheses. 4 200
CollapsibleIfStatements These nested if statements could be combined 3 226228
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 132137

org/apache/maven/index/DefaultSearchEngine.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 165167
CollapsibleIfStatements These nested if statements could be combined 3 213215

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 222223

org/apache/maven/index/context/DefaultIndexingContext.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 468470

org/apache/maven/index/context/MergedIndexingContext.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 148150

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 567569
EmptyCatchBlock Avoid empty catch blocks 3 579580

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 308309
CollapsibleIfStatements These nested if statements could be combined 3 589593

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 135137
CollapsibleIfStatements These nested if statements could be combined 3 143145
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