PMD Results

The following document contains the results of PMD.

Summary

FilesErrors
616

Files

FilesViolations
org/apache/commons/jelly/tags/jetty/HttpContextTag.java 1
org/apache/commons/jelly/tags/jetty/JellyResourceHttpHandler.java 7
org/apache/commons/jelly/tags/jetty/JettyHttpServerTag.java 2
org/apache/commons/jelly/tags/jetty/ResponseHeaderTag.java 1
org/apache/commons/jelly/tags/jetty/SecurityHandlerTag.java 3
org/apache/commons/jelly/jetty/TestJettyHttpServerTags.java 2

org/apache/commons/jelly/tags/jetty/HttpContextTag.java

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

org/apache/commons/jelly/tags/jetty/JellyResourceHttpHandler.java

ViolationLine
Avoid importing anything from the package 'java.lang' 35
Private field could be made final. It is only initialized in the declaration or constructor. 54
Private field could be made final. It is only initialized in the declaration or constructor. 57
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 72
Avoid if (x != y) ..; else ..; 93
Avoid unnecessary return statements 123
Avoid unused local variables such as 'br' 131

org/apache/commons/jelly/tags/jetty/JettyHttpServerTag.java

ViolationLine
Non-static initializers are confusing 70
Private field could be made final. It is only initialized in the declaration or constructor. 86

org/apache/commons/jelly/tags/jetty/ResponseHeaderTag.java

ViolationLine
Avoid if (x != y) ..; else ..; 59

org/apache/commons/jelly/tags/jetty/SecurityHandlerTag.java

ViolationLine
The class 'SecurityHandlerTag' has a Cyclomatic Complexity of 5 (Highest = 11). 46
The method 'initSecurityConstraint' has a Cyclomatic Complexity of 10. 159
The method 'initLoginConfig' has a Cyclomatic Complexity of 11. 230

org/apache/commons/jelly/jetty/TestJettyHttpServerTags.java

ViolationLine
The String literal "It works!" appears 9 times in this file; the first occurrence is on line 57 57
The String literal "Produces the correct output" appears 5 times in this file; the first occurrence is on line 57 57