PMD Results

The following document contains the results of PMD 4.1.

Files

org/restafarian/core/filters/OpenIdFilter.java

Violation Line
Use explicit scoping instead of the default package private level 39
Found 'DU'-anomaly for variable 'servletPath' (lines '122'-'131'). 122 - 131
A method should have only one exit point, and that should be the last statement in the method 127

org/restafarian/core/filters/SecurityFilter.java

Violation Line
Found 'DU'-anomaly for variable 'res' (lines '33'-'61'). 33 - 61
Found 'DD'-anomaly for variable 'connector' (lines '46'-'48'). 46 - 48

org/restafarian/core/security/AuthenticatedUserManager.java

Violation Line
Found 'DD'-anomaly for variable 'userManager' (lines '37'-'39'). 37 - 39
Found 'DD'-anomaly for variable 'userManager' (lines '39'-'43'). 39 - 43

org/restafarian/core/security/DefaultUserManager.java

Violation Line
Found 'DD'-anomaly for variable 'user' (lines '36'-'39'). 36 - 39

org/restafarian/core/security/ServiceBasedUserManager.java

Violation Line
Found 'DD'-anomaly for variable 'user' (lines '43'-'51'). 43 - 51
Found 'DD'-anomaly for variable 'user' (lines '80'-'87'). 80 - 87

org/restafarian/core/security/UserManager.java

Violation Line
Avoid modifiers which are implied by the context 20
Avoid modifiers which are implied by the context 29
Avoid modifiers which are implied by the context 37

org/restafarian/core/servlets/RestServletBase.java

Violation Line
Found 'DD'-anomaly for variable 'id' (lines '98'-'101'). 98 - 101
Avoid empty catch blocks 102 - 104
Found 'DD'-anomaly for variable 'id' (lines '117'-'121'). 117 - 121
A method should have only one exit point, and that should be the last statement in the method 148
Found 'DD'-anomaly for variable 'filtered' (lines '152'-'154'). 152 - 154
Found 'DU'-anomaly for variable 'filtered' (lines '152'-'191'). 152 - 191
Assigning an Object to null is a code smell. Consider refactoring. 154
Found 'DD'-anomaly for variable 'filtered' (lines '154'-'157'). 154 - 157
Found 'DD'-anomaly for variable 'filtered' (lines '154'-'160'). 154 - 160
Found 'DD'-anomaly for variable 'filtered' (lines '154'-'163'). 154 - 163
Found 'DD'-anomaly for variable 'filtered' (lines '154'-'166'). 154 - 166
Found 'DD'-anomaly for variable 'filtered' (lines '154'-'169'). 154 - 169

org/restafarian/core/servlets/SelectListServletBase.java

Violation Line
Found 'DD'-anomaly for variable 'startIndex' (lines '111'-'115'). 111 - 115
Found 'DD'-anomaly for variable 'count' (lines '112'-'119'). 112 - 119
Found 'DU'-anomaly for variable 'thisItem' (lines '134'-'153'). 134 - 153
Found 'DD'-anomaly for variable 'thisItem' (lines '134'-'134'). 134
Found 'DD'-anomaly for variable 'options' (lines '162'-'180'). 162 - 180
Found 'DD'-anomaly for variable 'options' (lines '162'-'185'). 162 - 185
Found 'DU'-anomaly for variable 'rightNow' (lines '163'-'197'). 163 - 197
Found 'DD'-anomaly for variable 'conn' (lines '221'-'227'). 221 - 227
Found 'DD'-anomaly for variable 'stmt' (lines '222'-'229'). 222 - 229
Found 'DD'-anomaly for variable 'rs' (lines '223'-'230'). 223 - 230
Found 'DU'-anomaly for variable 'items' (lines '225'-'291'). 225 - 291
Assigning an Object to null is a code smell. Consider refactoring. 257
Found 'DU'-anomaly for variable 'rs' (lines '257'-'291'). 257 - 291
Assigning an Object to null is a code smell. Consider refactoring. 266
Found 'DU'-anomaly for variable 'stmt' (lines '266'-'291'). 266 - 291
Assigning an Object to null is a code smell. Consider refactoring. 276
Found 'DU'-anomaly for variable 'conn' (lines '276'-'291'). 276 - 291
These nested if statements could be combined 281 - 287
Found 'DU'-anomaly for variable 'cutoffDate' (lines '331'-'351'). 331 - 351
Found 'DD'-anomaly for variable 'dataSource' (lines '370'-'374'). 370 - 374

org/restafarian/core/utils/BetwixtTool.java

Violation Line
Found 'DD'-anomaly for variable 'xml' (lines '73'-'83'). 73 - 83

org/restafarian/core/utils/ISO8601DateConverter.java

Violation Line
Found 'DU'-anomaly for variable 'returnValue' (lines '19'-'40'). 19 - 40
Found 'DD'-anomaly for variable 'returnValue' (lines '19'-'26'). 19 - 26
Found 'DD'-anomaly for variable 'returnValue' (lines '19'-'29'). 19 - 29
Found 'DD'-anomaly for variable 'returnValue' (lines '19'-'31'). 19 - 31
Found 'DD'-anomaly for variable 'returnValue' (lines '19'-'34'). 19 - 34