PMD Results

The following document contains the results of PMD.

Summary

FilesErrors
1149

Files

FilesViolations
org/apache/portals/bridges/jsf/AbstractAttributeMap.java 3
org/apache/portals/bridges/jsf/ApplicationMap.java 3
org/apache/portals/bridges/jsf/FacesPortlet.java 11
org/apache/portals/bridges/jsf/InitParameterMap.java 3
org/apache/portals/bridges/jsf/PortletExternalContextImpl.java 5
org/apache/portals/bridges/jsf/PortletFacesContextImpl.java 6
org/apache/portals/bridges/jsf/PortletUIViewRoot.java 1
org/apache/portals/bridges/jsf/RequestMap.java 4
org/apache/portals/bridges/jsf/RequestParameterMap.java 3
org/apache/portals/bridges/jsf/RequestParameterValuesMap.java 3
org/apache/portals/bridges/jsf/SessionMap.java 7

org/apache/portals/bridges/jsf/AbstractAttributeMap.java

ViolationLine
Avoid if (x != y) ..; else ..; 99
Avoid if (x != y) ..; else ..; 123
Avoid if (x != y) ..; else ..; 179

org/apache/portals/bridges/jsf/ApplicationMap.java

ViolationLine
No need to import a type that's in the same package 22
Avoid if (x != y) ..; else ..; 62
Avoid if (x != y) ..; else ..; 100

org/apache/portals/bridges/jsf/FacesPortlet.java

ViolationLine
The class 'FacesPortlet' has a Cyclomatic Complexity of 4 (Highest = 11). 54
Avoid unused private fields such as 'application' 144
The method 'process' has a Cyclomatic Complexity of 11. 414
Avoid unused local variables such as 'defaultView' 422
Avoid unused local variables such as 'actionResponse' 458
Avoid if (x != y) ..; else ..; 532
Avoid if (x != y) ..; else ..; 543
Avoid reassigning parameters such as 'defaultView' 565
Avoid if (x != y) ..; else ..; 574
Avoid if (x != y) ..; else ..; 588
Avoid if (x != y) ..; else ..; 616

org/apache/portals/bridges/jsf/InitParameterMap.java

ViolationLine
No need to import a type that's in the same package 22
Avoid if (x != y) ..; else ..; 62
Avoid if (x != y) ..; else ..; 94

org/apache/portals/bridges/jsf/PortletExternalContextImpl.java

ViolationLine
Avoid unused private fields such as 'requestCookieMap' 90
Avoid unused private fields such as 'requestPathInfo' 96
Avoid unused private fields such as 'requestServletPath' 99
Avoid if (x != y) ..; else ..; 402
Avoid if (x != y) ..; else ..; 435

org/apache/portals/bridges/jsf/PortletFacesContextImpl.java

ViolationLine
Avoid unused imports such as 'ActionRequest' 36
Avoid calls to overridable methods during construction 108
Avoid if (x != y) ..; else ..; 196
Avoid using if statements without curly braces 272
Avoid using if statements without curly braces 277
Avoid if (x != y) ..; else ..; 397

org/apache/portals/bridges/jsf/PortletUIViewRoot.java

ViolationLine
Avoid using if statements without curly braces 56

org/apache/portals/bridges/jsf/RequestMap.java

ViolationLine
Avoid unused imports such as 'PortletContext' 20
No need to import a type that's in the same package 23
Avoid if (x != y) ..; else ..; 60
Avoid if (x != y) ..; else ..; 97

org/apache/portals/bridges/jsf/RequestParameterMap.java

ViolationLine
No need to import a type that's in the same package 22
Avoid if (x != y) ..; else ..; 59
Avoid if (x != y) ..; else ..; 90

org/apache/portals/bridges/jsf/RequestParameterValuesMap.java

ViolationLine
No need to import a type that's in the same package 22
Avoid if (x != y) ..; else ..; 59
Avoid if (x != y) ..; else ..; 90

org/apache/portals/bridges/jsf/SessionMap.java

ViolationLine
No need to import a type that's in the same package 23
No need to import a type that's in the same package 24
Avoid if (x != y) ..; else ..; 64
Avoid calling toString() on String objects; this is unnecessary 67
An empty statement (semicolon) not part of a loop 95
Avoid if (x != y) ..; else ..; 108
An empty statement (semicolon) not part of a loop 111