Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

org/apache/maven/archetype/common/MavenJDOMWriter.java
Rule Violation Line
UnusedNullCheckInEquals Invoke equals() on the object you've already ensured is not null 212
org/apache/maven/archetype/common/util/XMLOutputter.java
Rule Violation Line
EmptyControlStatement Empty else statement 394397
EmptyControlStatement Empty else statement 989993
CollapsibleIfStatements This if statement could be combined with its parent 10471051
CollapsibleIfStatements This if statement could be combined with its parent 10481050
org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'directory'. 752
UnusedFormalParameter Avoid unused method parameters such as 'keepParent'. 1064
UnusedFormalParameter Avoid unused method parameters such as 'directory'. 1243
UnusedFormalParameter Avoid unused method parameters such as 'archetypeDescriptor'. 1298
org/apache/maven/archetype/old/DefaultOldArchetype.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 260272

Priority 4

org/apache/maven/archetype/common/DefaultArchetypeArtifactManager.java
Rule Violation Line
UselessParentheses Useless parentheses. 270
UselessParentheses Useless parentheses. 276
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.archetype.metadata': 'ArchetypeDescriptor' is already in scope because it is imported in this file 280
org/apache/maven/archetype/common/MavenJDOMWriter.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 625
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 672
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 719
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 766
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 813
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 860
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 907
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 954
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 1001
org/apache/maven/archetype/common/util/Format.java
Rule Violation Line
UselessParentheses Useless parentheses. 468
UselessParentheses Useless parentheses. 471
org/apache/maven/archetype/common/util/XMLOutputter.java
Rule Violation Line
UselessParentheses Useless parentheses. 353
UselessParentheses Useless parentheses. 802804
UselessParentheses Useless parentheses. 819
UselessParentheses Useless parentheses. 1048
UselessParentheses Useless parentheses. 1048
UselessParentheses Useless parentheses. 1273
UselessParentheses Useless parentheses. 1278
UselessParentheses Useless parentheses. 1284
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'CloneNotSupportedException' is already in scope because it is declared in java.lang 1447
UselessParentheses Useless parentheses. 14831489
org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
Rule Violation Line
UselessParentheses Useless parentheses. 736

Files

org/apache/maven/archetype/common/DefaultArchetypeArtifactManager.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 270
UselessParentheses Useless parentheses. 4 276
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.archetype.metadata': 'ArchetypeDescriptor' is already in scope because it is imported in this file 4 280

org/apache/maven/archetype/common/MavenJDOMWriter.java

Rule Violation Priority Line
UnusedNullCheckInEquals Invoke equals() on the object you've already ensured is not null 3 212
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 4 625
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 4 672
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 4 719
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 4 766
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 4 813
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 4 860
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 4 907
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 4 954
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collection' is already in scope because it is imported in this file 4 1001

org/apache/maven/archetype/common/util/Format.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 468
UselessParentheses Useless parentheses. 4 471

org/apache/maven/archetype/common/util/XMLOutputter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 353
EmptyControlStatement Empty else statement 3 394397
UselessParentheses Useless parentheses. 4 802804
UselessParentheses Useless parentheses. 4 819
EmptyControlStatement Empty else statement 3 989993
CollapsibleIfStatements This if statement could be combined with its parent 3 10471051
CollapsibleIfStatements This if statement could be combined with its parent 3 10481050
UselessParentheses Useless parentheses. 4 1048
UselessParentheses Useless parentheses. 4 1048
UselessParentheses Useless parentheses. 4 1273
UselessParentheses Useless parentheses. 4 1278
UselessParentheses Useless parentheses. 4 1284
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'CloneNotSupportedException' is already in scope because it is declared in java.lang 4 1447
UselessParentheses Useless parentheses. 4 14831489

org/apache/maven/archetype/creator/FilesetArchetypeCreator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 736
UnusedFormalParameter Avoid unused method parameters such as 'directory'. 3 752
UnusedFormalParameter Avoid unused method parameters such as 'keepParent'. 3 1064
UnusedFormalParameter Avoid unused method parameters such as 'directory'. 3 1243
UnusedFormalParameter Avoid unused method parameters such as 'archetypeDescriptor'. 3 1298

org/apache/maven/archetype/old/DefaultOldArchetype.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 260272