PMD Results

The following document contains the results of PMD 4.2.2.

Files

funapi-core - org/fedoracommons/funapi/FormatsSerializer.java

Violation Line
Found 'DU'-anomaly for variable 'rootElement' (lines '67'-'83'). 67 - 83

funapi-core - org/fedoracommons/funapi/UnapiServlet.java

Violation Line
Found 'DD'-anomaly for variable 'formats' (lines '84'-'87'). 84 - 87
Found 'DD'-anomaly for variable 'formats' (lines '84'-'89'). 84 - 89
A method should have only one exit point, and that should be the last statement in the method 189

funapi-core - org/fedoracommons/funapi/utilities/NamespaceContextImpl.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 63
A method should have only one exit point, and that should be the last statement in the method 77

funapi-fedora - org/fedoracommons/funapi/fedora/FedoraResolver.java

Violation Line
Found 'DU'-anomaly for variable 'formats' (lines '148'-'154'). 148 - 154
Found 'DU'-anomaly for variable 'formats' (lines '161'-'168'). 161 - 168
Found 'DU'-anomaly for variable 'url' (lines '174'-'181'). 174 - 181
Found 'DD'-anomaly for variable 'newId' (lines '190'-'192'). 190 - 192
Found 'DD'-anomaly for variable 'newId' (lines '190'-'194'). 190 - 194
Found 'DU'-anomaly for variable 'apia' (lines '210'-'273'). 210 - 273
Found 'DU'-anomaly for variable 'jtMapper' (lines '221'-'273'). 221 - 273
Found 'DU'-anomaly for variable 'rootNode' (lines '222'-'273'). 222 - 273
Found 'DD'-anomaly for variable 'ds' (lines '224'-'229'). 224 - 229
Found 'DD'-anomaly for variable 'ds' (lines '229'-'229'). 229
Found 'DD'-anomaly for variable 'doc' (lines '240'-'243'). 240 - 243
Found 'DU'-anomaly for variable 'doc' (lines '243'-'273'). 243 - 273
A method should have only one exit point, and that should be the last statement in the method 265
A method should have only one exit point, and that should be the last statement in the method 278
Found 'DU'-anomaly for variable 'formats' (lines '280'-'296'). 280 - 296
Found 'DU'-anomaly for variable 'type' (lines '287'-'296'). 287 - 296
Found 'DD'-anomaly for variable 'type' (lines '287'-'287'). 287
Found 'DU'-anomaly for variable 'docs' (lines '288'-'296'). 288 - 296
Found 'DD'-anomaly for variable 'docs' (lines '288'-'288'). 288
Found 'DU'-anomaly for variable 'pid' (lines '299'-'321'). 299 - 321
Found 'DD'-anomaly for variable 'dissType' (lines '300'-'311'). 300 - 311
A method should have only one exit point, and that should be the last statement in the method 325

funapi-pmh-dspace - org/fedoracommons/funapi/pmh/dspace/DSpacePmhResolver.java

Violation Line
It is a good practice to call super() in a constructor 34 - 61

funapi-pmh-fedora - org/fedoracommons/funapi/pmh/fedora/FedoraPmhResolver.java

Violation Line
It is a good practice to call super() in a constructor 35 - 63
Found 'DD'-anomaly for variable 'oaiId' (lines '70'-'72'). 70 - 72
Found 'DD'-anomaly for variable 'oaiId' (lines '70'-'74'). 70 - 74

funapi-pmh - org/fedoracommons/funapi/pmh/AbstractPmhResolver.java

Violation Line
Found 'DU'-anomaly for variable 'formats' (lines '64'-'82'). 64 - 82
Found 'DD'-anomaly for variable 'nodelist' (lines '66'-'68'). 66 - 68
A method should have only one exit point, and that should be the last statement in the method 146