PMD Results

The following document contains the results of PMD.

Summary

FilesErrors
1141

Files

FilesViolations
org/apache/commons/jelly/tags/xml/ElementTag.java 5
org/apache/commons/jelly/tags/xml/ParseTag.java 2
org/apache/commons/jelly/tags/xml/ParseTagSupport.java 1
org/apache/commons/jelly/tags/xml/ReplaceNamespaceTag.java 5
org/apache/commons/jelly/tags/xml/SetTag.java 15
org/apache/commons/jelly/tags/xml/TransformTag.java 4
org/apache/commons/jelly/tags/xml/XMLTagLibrary.java 2
org/apache/commons/jelly/tags/xml/TestImport.java 1
org/apache/commons/jelly/tags/xml/TestJelly.java 1
org/apache/commons/jelly/tags/xml/TestParser.java 1
org/apache/commons/jelly/tags/xml/TestXMLTags.java 4

org/apache/commons/jelly/tags/xml/ElementTag.java

ViolationLine
Avoid unused imports such as 'org.apache.commons.jelly.JellyException' 18
The class 'ElementTag' has a Cyclomatic Complexity of 3 (Highest = 10). 32
Private field could be made final. It is only initialized in the declaration or constructor. 41
Avoid if (x != y) ..; else ..; 75
The method 'doTag' has a Cyclomatic Complexity of 10. 91

org/apache/commons/jelly/tags/xml/ParseTag.java

ViolationLine
Avoid unused private fields such as 'log' 36
Avoid if (x != y) ..; else ..; 98

org/apache/commons/jelly/tags/xml/ParseTagSupport.java

ViolationLine
Avoid reassigning parameters such as 'source' 153

org/apache/commons/jelly/tags/xml/ReplaceNamespaceTag.java

ViolationLine
The class 'ReplaceNamespaceTag' has a Cyclomatic Complexity of 3 (Highest = 10). 33
The method 'doTag' has a Cyclomatic Complexity of 10. 42
Avoid if (x != y) ..; else ..; 43
Avoid if (x != y) ..; else ..; 44
Avoid if (x != y) ..; else ..; 67

org/apache/commons/jelly/tags/xml/SetTag.java

ViolationLine
The class 'SetTag' has a Cyclomatic Complexity of 4 (Highest = 22). 47
Avoid unused private fields such as 'log' 56
Private field could be made final. It is only initialized in the declaration or constructor. 56
Private field could be made final. It is only initialized in the declaration or constructor. 73
The method 'doTag' has a Cyclomatic Complexity of 22. 81
Avoid unnecessary comparisons in boolean expressions 92
Avoid unnecessary comparisons in boolean expressions 116
Avoid unused private methods such as 'valueAsList' 177
Avoid unused private methods such as 'valueAsSingle' 189
Avoid unused private methods such as 'nodeListToStringList' 209
Avoid unused private methods such as 'joinDelimitedElements' 221
Avoid unused private methods such as 'determineReturnType' 233
Avoid if (x != y) ..; else ..; 243
Avoid instantiating Boolean objects; you can usually invoke Boolean.TRUE instead. 278
Avoid instantiating Boolean objects; you can usually invoke Boolean.TRUE instead. 288

org/apache/commons/jelly/tags/xml/TransformTag.java

ViolationLine
Avoid unused imports such as 'org.apache.commons.jelly.JellyContext' 41
Private field could be made final. It is only initialized in the declaration or constructor. 396
Private field could be made final. It is only initialized in the declaration or constructor. 399
A high number of imports can indicate a high degree of coupling within an object. 687

org/apache/commons/jelly/tags/xml/XMLTagLibrary.java

ViolationLine
Private field could be made final. It is only initialized in the declaration or constructor. 39
Private field could be made final. It is only initialized in the declaration or constructor. 41

org/apache/commons/jelly/tags/xml/TestImport.java

ViolationLine
Private field could be made final. It is only initialized in the declaration or constructor. 37

org/apache/commons/jelly/tags/xml/TestJelly.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 38

org/apache/commons/jelly/tags/xml/TestParser.java

ViolationLine
Avoid reassigning parameters such as 'context' 77

org/apache/commons/jelly/tags/xml/TestXMLTags.java

ViolationLine
The String literal "Evaluated script as..." appears 4 times in this file; the first occurrence is on line 91 91
The String literal "It works!" appears 8 times in this file; the first occurrence is on line 94 94
The String literal "Should produce the correct output" appears 16 times in this file; the first occurrence is on line 94 94
The String literal "</test-node>" appears 5 times in this file; the first occurrence is on line 123 123