PMD Results

The following document contains the results of PMD.

Summary

FilesErrors
1147

Files

FilesViolations
org/apache/portals/bridges/jsf/AbstractAttributeMap.java 3
org/apache/portals/bridges/jsf/ApplicationMap.java 3
org/apache/portals/bridges/jsf/FacesContextFactoryImpl.java 1
org/apache/portals/bridges/jsf/FacesPortlet.java 10
org/apache/portals/bridges/jsf/InitParameterMap.java 3
org/apache/portals/bridges/jsf/PortletExternalContextImpl.java 5
org/apache/portals/bridges/jsf/PortletFacesContextImpl.java 5
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/FacesContextFactoryImpl.java

ViolationLine
Avoid unused local variables such as 'defaultViewName' 52

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

ViolationLine
The class 'FacesPortlet' has a Cyclomatic Complexity of 4 (Highest = 11). 55
Avoid unused private fields such as 'application' 134
Avoid unused formal parameters such as 'requestType' 403
The method 'process' has a Cyclomatic Complexity of 11. 403
Avoid unused local variables such as 'defaultView' 409
Avoid unused local variables such as 'actionResponse' 445
Avoid if (x != y) ..; else ..; 519
Avoid reassigning parameters such as 'defaultView' 539
Avoid if (x != y) ..; else ..; 548
Avoid if (x != y) ..; else ..; 584

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' 91
Avoid unused private fields such as 'requestPathInfo' 97
Avoid unused private fields such as 'requestServletPath' 100
Avoid reassigning parameters such as 's' 376
Avoid if (x != y) ..; else ..; 414

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

ViolationLine
Avoid calls to overridable methods during construction 108
Avoid if (x != y) ..; else ..; 193
Avoid using if statements without curly braces 269
Avoid using if statements without curly braces 274
Avoid if (x != y) ..; else ..; 394

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