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 248251

org/apache/maven/index/DefaultQueryCreator.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 151155

org/apache/maven/index/DefaultSearchEngine.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 177180
CollapsibleIfStatements These nested if statements could be combined 232235

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 208210

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

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 505508

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

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 152155

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 627630
EmptyCatchBlock Avoid empty catch blocks 642644

org/apache/maven/index/updater/DefaultIndexUpdater.java

Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'success'. 287
EmptyCatchBlock Avoid empty catch blocks 375377
CollapsibleIfStatements These nested if statements could be combined 728733

org/apache/maven/index/updater/IndexDataWriter.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 147150
CollapsibleIfStatements These nested if statements could be combined 160163

Priority 4

org/apache/maven/index/DefaultIteratorResultSet.java

Rule Violation Line
UselessParentheses Useless parentheses. 128129
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 128129
UselessParentheses Useless parentheses. 4 222
UselessParentheses Useless parentheses. 4 222
UselessParentheses Useless parentheses. 4 222
CollapsibleIfStatements These nested if statements could be combined 3 248251
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 151155

org/apache/maven/index/DefaultSearchEngine.java

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

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 208210

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

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

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

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

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 627630
EmptyCatchBlock Avoid empty catch blocks 3 642644

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

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