PMD Results

The following document contains the results of PMD 5.3.5.

Files

org/apache/maven/index/ArtifactInfo.java

Violation Line
Avoid unused private fields such as 'uinfo'. 339

org/apache/maven/index/DefaultIteratorResultSet.java

Violation Line
Useless parentheses. 222
Useless parentheses. 222
Useless parentheses. 222
These nested if statements could be combined 248251
Useless parentheses. 416
Useless parentheses. 416

org/apache/maven/index/DefaultQueryCreator.java

Violation Line
These nested if statements could be combined 150154

org/apache/maven/index/DefaultSearchEngine.java

Violation Line
These nested if statements could be combined 178181
These nested if statements could be combined 233236

org/apache/maven/index/IndexerField.java

Violation Line
Avoid unused constructor parameters such as 'description'. 54

org/apache/maven/index/OneLineFragmenter.java

Violation Line
Useless parentheses. 53
Useless parentheses. 53

org/apache/maven/index/artifact/M2GavCalculator.java

Violation Line
Avoid empty catch blocks 198200

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

Violation Line
These nested if statements could be combined 501504

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

Violation Line
Avoid unused private fields such as 'BUFFER_SIZE'. 45

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

Violation Line
These nested if statements could be combined 151154

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

Violation Line
Avoid unused constructor parameters such as 'create'. 46

org/apache/maven/index/creator/JarFileContentsIndexCreator.java

Violation Line
Useless parentheses. 193

org/apache/maven/index/creator/MavenArchetypeArtifactInfoIndexCreator.java

Violation Line
Avoid empty catch blocks 123125

org/apache/maven/index/creator/MavenPluginArtifactInfoIndexCreator.java

Violation Line
Avoid empty catch blocks 147149

org/apache/maven/index/creator/OsgiArtifactIndexCreator.java

Violation Line
Avoid empty while statements 645647
Avoid empty catch blocks 663665

org/apache/maven/index/treeview/TreeViewRequest.java

Violation Line
Useless parentheses. 93

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

Violation Line
Avoid unused local variables such as 'success'. 276
Avoid empty catch blocks 364366
These nested if statements could be combined 717722

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

Violation Line
Useless parentheses. 285
Useless parentheses. 285

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

Violation Line
These nested if statements could be combined 153156
These nested if statements could be combined 166169
Useless parentheses. 271
Useless parentheses. 271
Useless parentheses. 296
Useless parentheses. 296
Useless parentheses. 306
Useless parentheses. 306