PMD Results

The following document contains the results of PMD.

Summary

FilesErrors
1027

Files

FilesViolations
org/apache/commons/jelly/tags/bean/BeanPropertyTag.java 2
org/apache/commons/jelly/tags/bean/BeanTag.java 5
org/apache/commons/jelly/tags/bean/BeanTagLibrary.java 3
org/apache/commons/jelly/tags/bean/BeandefTag.java 2
org/apache/commons/jelly/tags/bean/Customer.java 10
org/apache/commons/jelly/tags/bean/Manager.java 1
org/apache/commons/jelly/tags/bean/MyBeanTagLibrary.java 1
org/apache/commons/jelly/tags/bean/Order.java 1
org/apache/commons/jelly/tags/bean/Product.java 1
org/apache/commons/jelly/tags/bean/TestJelly.java 1

org/apache/commons/jelly/tags/bean/BeanPropertyTag.java

ViolationLine
Private field could be made final. It is only initialized in the declaration or constructor. 46
Avoid if (x != y) ..; else ..; 68

org/apache/commons/jelly/tags/bean/BeanTag.java

ViolationLine
The class 'BeanTag' has a Cyclomatic Complexity of 3 (Highest = 12). 42
The method 'processBean' has a Cyclomatic Complexity of 12. 90
Avoid if (x != y) ..; else ..; 108
Avoid if (x != y) ..; else ..; 116
Avoid if (x != y) ..; else ..; 150

org/apache/commons/jelly/tags/bean/BeanTagLibrary.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. 42
Avoid if (x != y) ..; else ..; 67

org/apache/commons/jelly/tags/bean/BeandefTag.java

ViolationLine
Avoid unused private fields such as 'EMPTY_MAP' 46
Private field could be made final. It is only initialized in the declaration or constructor. 63

org/apache/commons/jelly/tags/bean/Customer.java

ViolationLine
Private field could be made final. It is only initialized in the declaration or constructor. 32
Overridable method 'setName' called during construction 39
Overridable method 'setName' called during construction 43
Overridable method 'setLocation' called during construction 44
Overridable method 'setName' called during construction 48
Overridable method 'setLocation' called during construction 49
Overridable method 'addOrder' called during construction 50
Overridable method 'setName' called during construction 54
Overridable method 'setLocation' called during construction 55
Overridable method 'addOrder' called during construction 59

org/apache/commons/jelly/tags/bean/Manager.java

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

org/apache/commons/jelly/tags/bean/MyBeanTagLibrary.java

ViolationLine
No need to import a type that's in the same package 18

org/apache/commons/jelly/tags/bean/Order.java

ViolationLine
Avoid unused private fields such as 'log' 30

org/apache/commons/jelly/tags/bean/Product.java

ViolationLine
Avoid unused private fields such as 'log' 30

org/apache/commons/jelly/tags/bean/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