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 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 195197

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
EmptyWhileStmt Avoid empty while statements 628630
EmptyCatchBlock Avoid empty catch blocks 642644

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

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

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

Rule Violation Line
EmptyIfStmt Avoid empty if statements 106108

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. 95

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 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 95
EmptyCatchBlock Avoid empty catch blocks 3 195197

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
EmptyWhileStmt Avoid empty while statements 3 628630
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 285
EmptyCatchBlock Avoid empty catch blocks 3 373375
CollapsibleIfStatements These nested if statements could be combined 3 724729

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

Rule Violation Priority Line
EmptyIfStmt Avoid empty if statements 3 106108
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 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