PMD Results

The following document contains the results of PMD 4.3.

Files

de/fub/mi/idenpa/generated/CertificateStatusType.java

ViolationLine
Parameter 'v' is not assigned and could be declared final43

de/fub/mi/idenpa/generated/ErrorCodeType.java

ViolationLine
Parameter 'v' is not assigned and could be declared final81

de/fub/mi/idenpa/generated/IdemixArtefactType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final70
Parameter 'value' is not assigned and could be declared final92

de/fub/mi/idenpa/generated/IdemixDataType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final93
Parameter 'value' is not assigned and could be declared final117
Parameter 'value' is not assigned and could be declared final141
Parameter 'value' is not assigned and could be declared final165

de/fub/mi/idenpa/generated/IdemixServiceMessage.java

ViolationLine
Parameter 'value' is not assigned and could be declared final77
Parameter 'value' is not assigned and could be declared final101
Parameter 'value' is not assigned and could be declared final125
Parameter 'value' is not assigned and could be declared final149

de/fub/mi/idenpa/generated/IssueDataRequestType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final73
Parameter 'value' is not assigned and could be declared final97

de/fub/mi/idenpa/generated/IssueDataResponseType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final73
Parameter 'value' is not assigned and could be declared final97

de/fub/mi/idenpa/generated/IssueInitialRequestType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final84
Parameter 'value' is not assigned and could be declared final108
Parameter 'value' is not assigned and could be declared final132
Parameter 'value' is not assigned and could be declared final156

de/fub/mi/idenpa/generated/IssueMessageType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final85
Parameter 'value' is not assigned and could be declared final109
Parameter 'value' is not assigned and could be declared final133
Parameter 'value' is not assigned and could be declared final157
Parameter 'value' is not assigned and could be declared final181
Parameter 'value' is not assigned and could be declared final205

de/fub/mi/idenpa/generated/IssueResultType.java

ViolationLine
Each class should declare at least one constructor34 - 39

de/fub/mi/idenpa/generated/IssueSignRequestType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final67

de/fub/mi/idenpa/generated/IssueSignResponseType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final69

de/fub/mi/idenpa/generated/ObjectFactory.java

ViolationLine
This class has too many methods, consider refactoring it.29 - 231
Document empty constructor36 - 37
Avoid unnecessary constructors - the compiler will generate these for you36 - 37

de/fub/mi/idenpa/generated/ProveInitialRequestType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final69

de/fub/mi/idenpa/generated/ProveMessageType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final77
Parameter 'value' is not assigned and could be declared final101
Parameter 'value' is not assigned and could be declared final125
Parameter 'value' is not assigned and could be declared final149

de/fub/mi/idenpa/generated/ProveRequestType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final74
Parameter 'value' is not assigned and could be declared final98

de/fub/mi/idenpa/generated/ProveResponseType.java

ViolationLine
Each class should declare at least one constructor34 - 39

de/fub/mi/idenpa/generated/ProveResultType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final57

de/fub/mi/idenpa/generated/RevokeMessageType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final73
Parameter 'value' is not assigned and could be declared final97
Parameter 'value' is not assigned and could be declared final121

de/fub/mi/idenpa/generated/RevokeRequestType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final74
Parameter 'value' is not assigned and could be declared final98

de/fub/mi/idenpa/generated/RevokeResponseType.java

ViolationLine
Each class should declare at least one constructor34 - 39

de/fub/mi/idenpa/generated/RevokeResultType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final57

de/fub/mi/idenpa/generated/StatusType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final68
Parameter 'value' is not assigned and could be declared final92

de/fub/mi/idenpa/generated/VerifyMessageType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final73
Parameter 'value' is not assigned and could be declared final97
Parameter 'value' is not assigned and could be declared final121

de/fub/mi/idenpa/generated/VerifyRequestType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final69

de/fub/mi/idenpa/generated/VerifyResponseType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final57

de/fub/mi/idenpa/generated/VerifyResultType.java

ViolationLine
Parameter 'value' is not assigned and could be declared final67

de/fub/mi/idenpa/shared/Constants.java

ViolationLine
Each class should declare at least one constructor31 - 49

de/fub/mi/idenpa/shared/E_HttpParam.java

ViolationLine
Parameter 'name' is not assigned and could be declared final54
Parameter 'isPost' is not assigned and could be declared final54
Parameter 'key' is not assigned and could be declared final83
Found 'DD'-anomaly for variable 'result' (lines '84'-'88').84 - 88

de/fub/mi/idenpa/shared/E_IdemixEidAttrib.java

ViolationLine
Parameter 'idemixId' is not assigned and could be declared final155
Parameter 'certId' is not assigned and could be declared final155
Parameter 'defVal' is not assigned and could be declared final156
Parameter 'displayName' is not assigned and could be declared final156
Parameter 'required' is not assigned and could be declared final156
Parameter 'type' is not assigned and could be declared final156
Parameter 'id' is not assigned and could be declared final217
Found 'DD'-anomaly for variable 'result' (lines '218'-'222').218 - 222
Parameter 'id' is not assigned and could be declared final237
Found 'DD'-anomaly for variable 'result' (lines '238'-'242').238 - 242
Parameter 'intVal' is not assigned and could be declared final257
Found 'DD'-anomaly for variable 'result' (lines '258'-'264').258 - 264
Found 'DD'-anomaly for variable 'result' (lines '258'-'269').258 - 269
Avoid using Literals in Conditional Statements260
Switch statements should have a default label261 - 271
A switch with less than 3 branches is inefficient, use a if statement instead.261 - 271
Avoid empty catch blocks265 - 266
Parameter 'val' is not assigned and could be declared final284
Found 'DD'-anomaly for variable 'result' (lines '285'-'291').285 - 291
Found 'DD'-anomaly for variable 'result' (lines '285'-'296').285 - 296
Avoid using Literals in Conditional Statements287
Switch statements should have a default label288 - 298
A switch with less than 3 branches is inefficient, use a if statement instead.288 - 298
Avoid empty catch blocks292 - 293
Parameter 'value' is not assigned and could be declared final311
Found 'DD'-anomaly for variable 'result' (lines '312'-'317').312 - 317
Found 'DD'-anomaly for variable 'result' (lines '312'-'319').312 - 319
Found 'DD'-anomaly for variable 'result' (lines '312'-'321').312 - 321
Found 'DD'-anomaly for variable 'result' (lines '312'-'325').312 - 325
Found 'DD'-anomaly for variable 'result' (lines '312'-'327').312 - 327
Switch statements should have a default label314 - 329
A switch with less than 3 branches is inefficient, use a if statement instead.314 - 329
No need to check for null before an instanceof316
No need to check for null before an instanceof318

de/fub/mi/idenpa/shared/E_IdemixVeAttrib.java

ViolationLine
Parameter 'idemixId' is not assigned and could be declared final77
Parameter 'certId' is not assigned and could be declared final77
Parameter 'displayName' is not assigned and could be declared final77
Parameter 'required' is not assigned and could be declared final77
Parameter 'defVal' is not assigned and could be declared final78
Parameter 'type' is not assigned and could be declared final78
Parameter 'id' is not assigned and could be declared final138
Found 'DD'-anomaly for variable 'result' (lines '139'-'143').139 - 143
Parameter 'val' is not assigned and could be declared final157
Found 'DD'-anomaly for variable 'result' (lines '158'-'164').158 - 164
Found 'DD'-anomaly for variable 'result' (lines '158'-'169').158 - 169
Avoid using Literals in Conditional Statements160
Switch statements should have a default label161 - 171
A switch with less than 3 branches is inefficient, use a if statement instead.161 - 171
Avoid empty catch blocks165 - 166
Parameter 'value' is not assigned and could be declared final183
Found 'DD'-anomaly for variable 'result' (lines '184'-'189').184 - 189
Found 'DD'-anomaly for variable 'result' (lines '184'-'191').184 - 191
Found 'DD'-anomaly for variable 'result' (lines '184'-'193').184 - 193
Found 'DD'-anomaly for variable 'result' (lines '184'-'197').184 - 197
Found 'DD'-anomaly for variable 'result' (lines '184'-'199').184 - 199
Switch statements should have a default label186 - 201
A switch with less than 3 branches is inefficient, use a if statement instead.186 - 201
No need to check for null before an instanceof188
No need to check for null before an instanceof190
Parameter 'intVal' is not assigned and could be declared final212
Found 'DD'-anomaly for variable 'result' (lines '213'-'219').213 - 219
Found 'DD'-anomaly for variable 'result' (lines '213'-'224').213 - 224
Avoid using Literals in Conditional Statements215
Switch statements should have a default label216 - 226
A switch with less than 3 branches is inefficient, use a if statement instead.216 - 226
Avoid empty catch blocks220 - 221

de/fub/mi/idenpa/shared/EidResult.java

ViolationLine
Private field 'm_strHandlerId' could be made final; it is only initialized in the declaration or constructor.37
Private field 'm_numRCode' could be made final; it is only initialized in the declaration or constructor.40
Private field 'm_strRMsg' could be made final; it is only initialized in the declaration or constructor.43
Private field 'm_objData' could be made final; it is only initialized in the declaration or constructor.46
Private field 'm_objVeAttribs' could be made final; it is only initialized in the declaration or constructor.49
Parameter 'rmsg' is not assigned and could be declared final59
Parameter 'rcode' is not assigned and could be declared final59
Parameter 'handlerId' is not assigned and could be declared final60
Parameter 'data' is not assigned and could be declared final60
Parameter 'rmsg' is not assigned and could be declared final77
Parameter 'rcode' is not assigned and could be declared final77
Parameter 'handlerId' is not assigned and could be declared final78
Parameter 'veData' is not assigned and could be declared final78
Parameter 'data' is not assigned and could be declared final78
Parameter 'value' is not assigned and could be declared final137
Parameter 'attrib' is not assigned and could be declared final137

de/fub/mi/idenpa/shared/ErrorCodeResolver.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.35 - 72
Use block level rather than method level synchronization59 - 70
Parameter 'code' is not assigned and could be declared final59
Found 'DD'-anomaly for variable 'result' (lines '60'-'63').60 - 63
Avoid using Literals in Conditional Statements62
Avoid using Literals in Conditional Statements65

de/fub/mi/idenpa/shared/ProofSpecParser.java

ViolationLine
The class 'ProofSpecParser' has a Cyclomatic Complexity of 2 (Highest = 20).59 - 676
Private field 'm_objProofSpec' could be made final; it is only initialized in the declaration or constructor.66
Private field 'm_objCredStorage' could be made final; it is only initialized in the declaration or constructor.69
Private field 'm_objMissingCerts' could be made final; it is only initialized in the declaration or constructor.72
Private field 'm_objRequestedCerts' could be made final; it is only initialized in the declaration or constructor.75
Private field 'm_objAttribDetail' could be made final; it is only initialized in the declaration or constructor.78
Private field 'm_objIneqDetail' could be made final; it is only initialized in the declaration or constructor.81
Private field 'm_objVencDetail' could be made final; it is only initialized in the declaration or constructor.84
Private field 'm_strRequester' could be made final; it is only initialized in the declaration or constructor.87
Private field 'm_objIdAttribMap' could be made final; it is only initialized in the declaration or constructor.90
Private field 'm_objAttribValueMap' could be made final; it is only initialized in the declaration or constructor.93
Private field 'm_objIdPkUriMap' could be made final; it is only initialized in the declaration or constructor.96
Parameter 'spec' is not assigned and could be declared final111
Parameter 'credentials' is not assigned and could be declared final111
Parameter 'requester' is not assigned and could be declared final112
The method parse() has an NPath complexity of 24373130 - 218
The method 'parse' has a Cyclomatic Complexity of 20.130 - 218
Local variable 'preds' could be declared final131
Avoid using Literals in Conditional Statements132
Local variable 'pred' could be declared final135
Local variable 'clp' could be declared final137
Local variable 'struct' could be declared final138
Local variable 'ipk' could be declared final139
Local variable 'cred' could be declared final140
Avoid instantiating new objects inside loops141
Avoid using Literals in Conditional Statements142
Avoid instantiating new objects inside loops144
Local variable 'attribs' could be declared final146 - 147
Local variable 'attiter' could be declared final148
Local variable 'attrib' could be declared final150
Local variable 'id' could be declared final151
Deeply nested if..then statements are hard to read152 - 159
Avoid using Literals in Conditional Statements152
Local variable 'value' could be declared final153
Avoid instantiating new objects inside loops154 - 155
Local variable 'pred' could be declared final166
Local variable 'iep' could be declared final168
Local variable 'id1' could be declared final169
Local variable 'id2' could be declared final170
Local variable 'attr1' could be declared final171
Found 'DD'-anomaly for variable 'attr2' (lines '172'-'178').172 - 178
Found 'DD'-anomaly for variable 'attr2' (lines '172'-'180').172 - 180
Found 'DD'-anomaly for variable 'attr2' (lines '172'-'183').172 - 183
Avoid if (x != y) ..; else ..;173
Local variable 'strId1' could be declared final173
Assigning an Object to null is a code smell. Consider refactoring.173
Avoid if (x != y) ..; else ..;174
Local variable 'strId2' could be declared final174
Assigning an Object to null is a code smell. Consider refactoring.174
Avoid instantiating new objects inside loops180 - 181
Found 'DD'-anomaly for variable 'val1' (lines '185'-'187').185 - 187
Found 'DD'-anomaly for variable 'val2' (lines '188'-'190').188 - 190
Avoid instantiating new objects inside loops192 - 193
Local variable 'pred' could be declared final198
Local variable 'vencPred' could be declared final200
Avoid instantiating new objects inside loops201
Parameter 'id' is not assigned and could be declared final271
Parameter 'idName' is not assigned and could be declared final281
Parameter 'idName' is not assigned and could be declared final291
Parameter 'attrName' is not assigned and could be declared final301
Found 'DD'-anomaly for variable 'result' (lines '311'-'316').311 - 316
Avoid using Literals in Conditional Statements313
Local variable 'idx' could be declared final314
Avoid using Literals in Conditional Statements315
Private field 'm_strAttribName' could be made final; it is only initialized in the declaration or constructor.328
Private field 'm_strIdName' could be made final; it is only initialized in the declaration or constructor.331
Private field 'm_bIsRevealed' could be made final; it is only initialized in the declaration or constructor.334
Private field 'm_strValue' could be made final; it is only initialized in the declaration or constructor.337
Parameter 'idName' is not assigned and could be declared final347
Parameter 'attrName' is not assigned and could be declared final347
Parameter 'isRevealed' is not assigned and could be declared final348
Parameter 'value' is not assigned and could be declared final348
Local variable 'result' could be declared final395
Avoid using Literals in Conditional Statements398
Private field 'm_strCertUri' could be made final; it is only initialized in the declaration or constructor.412
Private field 'm_strIpkUri' could be made final; it is only initialized in the declaration or constructor.415
Parameter 'certUri' is not assigned and could be declared final423
Parameter 'ipkUri' is not assigned and could be declared final423
Parameter 'cd' is not assigned and could be declared final452
Private field 'm_objOp' could be made final; it is only initialized in the declaration or constructor.464
Private field 'm_strAttr1' could be made final; it is only initialized in the declaration or constructor.467
Private field 'm_strAttr2' could be made final; it is only initialized in the declaration or constructor.470
Private field 'm_strId1' could be made final; it is only initialized in the declaration or constructor.473
Private field 'm_strId2' could be made final; it is only initialized in the declaration or constructor.476
Private field 'm_strVal1' could be made final; it is only initialized in the declaration or constructor.479
Private field 'm_strVal2' could be made final; it is only initialized in the declaration or constructor.482
Parameter 'id2' is not assigned and could be declared final495
Parameter 'id1' is not assigned and could be declared final495
Parameter 'attr2' is not assigned and could be declared final495
Parameter 'attr1' is not assigned and could be declared final495
Parameter 'op' is not assigned and could be declared final496
Parameter 'val1' is not assigned and could be declared final496
Parameter 'val2' is not assigned and could be declared final496
Local variable 'result' could be declared final510
Avoid using Literals in Conditional Statements516
Avoid using Literals in Conditional Statements530
Parameter 'op' is not assigned and could be declared final542
Found 'DD'-anomaly for variable 'result' (lines '543'-'547').543 - 547
Found 'DD'-anomaly for variable 'result' (lines '543'-'550').543 - 550
Found 'DD'-anomaly for variable 'result' (lines '543'-'553').543 - 553
Found 'DD'-anomaly for variable 'result' (lines '543'-'556').543 - 556
Switch statements should have a default label545 - 559
Private field 'm_strName' could be made final; it is only initialized in the declaration or constructor.571
Private field 'm_strId' could be made final; it is only initialized in the declaration or constructor.574
Private field 'm_objLabel' could be made final; it is only initialized in the declaration or constructor.577
Avoid unused private fields such as 'm_objPk'.580
Private field 'm_objPk' could be made final; it is only initialized in the declaration or constructor.580
Private field 'm_objPkUri' could be made final; it is only initialized in the declaration or constructor.583
Parameter 'id' is not assigned and could be declared final594
Parameter 'pkUri' is not assigned and could be declared final594
Parameter 'name' is not assigned and could be declared final594
Parameter 'label' is not assigned and could be declared final594
Parameter 'pk' is not assigned and could be declared final594
Parameter 'proof' is not assigned and could be declared final645
Parameter 'error' is not assigned and could be declared final663

de/fub/mi/idenpa/shared/RedirectContext.java

ViolationLine
The class 'RedirectContext' has a Cyclomatic Complexity of 3 (Highest = 11).46 - 431
Private field 'm_objDest' could be made final; it is only initialized in the declaration or constructor.67
If you run in Java5 and have concurrent access, you should use ConcurrentHashMap implementation70
Perhaps 'm_strData' could be replaced by a local variable.76
Parameter 'destination' is not assigned and could be declared final83
Parameter 'params' is not assigned and could be declared final97
Parameter 'destination' is not assigned and could be declared final97
Parameter 'type' is not assigned and could be declared final113
Parameter 'destination' is not assigned and could be declared final113
Parameter 'data' is not assigned and could be declared final114
Parameter 'data' is not assigned and could be declared final125
Parameter 'data' is not assigned and could be declared final140
Parameter 'type' is not assigned and could be declared final140
Parameter 'destination' is not assigned and could be declared final140
Avoid using Literals in Conditional Statements144
Parameter 'param' is not assigned and could be declared final182
Found 'DD'-anomaly for variable 'result' (lines '190'-'191').190 - 191
Parameter 'srequest' is not assigned and could be declared final204
Parameter 'sresponse' is not assigned and could be declared final205
Switch statements should have a default label207 - 222
Local variable 'redirect' could be declared final217 - 218
Avoid using Literals in Conditional Statements219
Parameter 'htmlData' is not assigned and could be declared final231
The method 'parse' has a Cyclomatic Complexity of 11.244 - 283
Parameter 'htmlData' is not assigned and could be declared final244
Parameter 'request' is not assigned and could be declared final244
Parameter 'type' is not assigned and could be declared final244
Parameter 'destination' is not assigned and could be declared final244
Found 'DD'-anomaly for variable 'result' (lines '245'-'250').245 - 250
Found 'DD'-anomaly for variable 'result' (lines '245'-'268').245 - 268
Found 'DD'-anomaly for variable 'result' (lines '245'-'275').245 - 275
Switch statements should have a default label247 - 280
Found 'DD'-anomaly for variable 'data' (lines '255'-'265').255 - 265
Found 'DD'-anomaly for variable 'dest' (lines '256'-'260').256 - 260
Local variable 'strDest' could be declared final257
Avoid using Literals in Conditional Statements258
Avoid empty catch blocks262 - 263
Substitute calls to size() == 0 (or size() != 0) with calls to isEmpty()266
Local variable 'strData' could be declared final267
Avoid using Literals in Conditional Statements270
Local variable 'strData' could be declared final272
Local variable 'dest' could be declared final273
Found 'DU'-anomaly for variable 'dest' (lines '273'-'283').273 - 283
Avoid if (x != y) ..; else ..;274 - 277
Avoid using Literals in Conditional Statements274
Parameter 'elemLocalName' is not assigned and could be declared final293
Parameter 'content' is not assigned and could be declared final294
Parameter 'attribLocalName' is not assigned and could be declared final294
Found 'DD'-anomaly for variable 'result' (lines '295'-'308').295 - 308
Avoid using Literals in Conditional Statements297
Avoid using Literals in Conditional Statements299
Avoid using Literals in Conditional Statements302
Local variable 'end' could be declared final304 - 305
The method 'getHtmlAttributes' has a Cyclomatic Complexity of 11.327 - 374
Parameter 'elemLocalName' is not assigned and could be declared final328
Parameter 'valueAttribName' is not assigned and could be declared final328
Parameter 'keyAttribName' is not assigned and could be declared final328
Parameter 'content' is not assigned and could be declared final329
Local variable 'result' could be declared final330
Avoid using Literals in Conditional Statements332
Local variable 'attr1Beg' could be declared final335 - 336
Local variable 'attr2Beg' could be declared final337 - 338
Found 'DD'-anomaly for variable 'key' (lines '342'-'348').342 - 348
Found 'DU'-anomaly for variable 'key' (lines '342'-'374').342 - 374
Found 'DD'-anomaly for variable 'key' (lines '342'-'342').342
Found 'DD'-anomaly for variable 'value' (lines '343'-'359').343 - 359
Found 'DU'-anomaly for variable 'value' (lines '343'-'374').343 - 374
Found 'DD'-anomaly for variable 'value' (lines '343'-'343').343
Found 'DD'-anomaly for variable 'paramKey' (lines '350'-'352').350 - 352
Avoid empty catch blocks353 - 354
Avoid using Literals in Conditional Statements355
Parameter 'request' is not assigned and could be declared final382
Found 'DD'-anomaly for variable 'result' (lines '383'-'397').383 - 397
Avoid using Literals in Conditional Statements385
Found 'DD'-anomaly for variable 'type' (lines '386'-'388').386 - 388
Found 'DD'-anomaly for variable 'type' (lines '386'-'390').386 - 390
Avoid using Literals in Conditional Statements391
Local variable 'dest' could be declared final396
Parameter 'request' is not assigned and could be declared final414
Local variable 'result' could be declared final415
If you run in Java5 and have concurrent access, you should use ConcurrentHashMap implementation415
Local variable 'params' could be declared final416
Local variable 'param' could be declared final418
Found 'DD'-anomaly for variable 'hParam' (lines '419'-'421').419 - 421
Avoid empty catch blocks422 - 424
Avoid using Literals in Conditional Statements425

de/fub/mi/idenpa/shared/Utils.java

ViolationLine
This class has too many methods, consider refactoring it.70 - 653
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.70 - 653
Parameter 'postParams' is not assigned and could be declared final100
Parameter 'redirectTo' is not assigned and could be declared final101
Found 'DD'-anomaly for variable 'result' (lines '102'-'124').102 - 124
Local variable 'html' could be declared final104 - 106
Avoid using Literals in Conditional Statements108
Local variable 'iter' could be declared final109
Local variable 'key' could be declared final111
Local variable 'val' could be declared final112
Parameter 'str' is not assigned and could be declared final135
Found 'DD'-anomaly for variable 'result' (lines '136'-'139').136 - 139
Local variable 'bytes' could be declared final138
Parameter 'str' is not assigned and could be declared final146
Found 'DD'-anomaly for variable 'result' (lines '147'-'150').147 - 150
Local variable 'bytes' could be declared final149
Parameter 'str' is not assigned and could be declared final163
Found 'DD'-anomaly for variable 'result' (lines '164'-'168').164 - 168
Avoid using Literals in Conditional Statements166
Parameter 'bytes' is not assigned and could be declared final183
Found 'DD'-anomaly for variable 'result' (lines '184'-'187').184 - 187
Avoid using Literals in Conditional Statements185
Parameter 'b64Data' is not assigned and could be declared final201
Found 'DD'-anomaly for variable 'result' (lines '202'-'204').202 - 204
Parameter 'b64Data' is not assigned and could be declared final217
Found 'DD'-anomaly for variable 'result' (lines '218'-'221').218 - 221
Local variable 'bytes' could be declared final220
Parameter 'inputStream' is not assigned and could be declared final235
Found 'DD'-anomaly for variable 'result' (lines '236'-'247').236 - 247
Avoid using Literals in Conditional Statements238
Local variable 'br' could be declared final240 - 241
Found 'DD'-anomaly for variable 'line' (lines '242'-'244').242 - 244
Local variable 'content' could be declared final243
Avoid assignments in operands244
Found 'DU'-anomaly for variable 'line' (lines '244'-'254').244 - 254
Avoid empty catch blocks248 - 250
Parameter 'str' is not assigned and could be declared final262
Parameter 'file' is not assigned and could be declared final262
Avoid using Literals in Conditional Statements264
Local variable 'created' could be declared final270
Local variable 'output' could be declared final272
Parameter 'data' is not assigned and could be declared final305
Found 'DD'-anomaly for variable 'result' (lines '306'-'314').306 - 314
Local variable 'm' could be declared final309
Local variable 'writer' could be declared final310
Parameter 'data' is not assigned and could be declared final328
Found 'DD'-anomaly for variable 'result' (lines '329'-'343').329 - 343
Avoid using Literals in Conditional Statements331
Local variable 'um' could be declared final333
Avoid using Literals in Conditional Statements335
Found 'DD'-anomaly for variable 'begidx' (lines '336'-'337').336 - 337
Local variable 'endidx' could be declared final338
Local variable 'localName' could be declared final340
Local variable 'cls' could be declared final341
Local variable 'ssource' could be declared final342
Parameter 'data' is not assigned and could be declared final359
Parameter 'redirectTo' is not assigned and could be declared final359
Found 'DD'-anomaly for variable 'result' (lines '360'-'370').360 - 370
Local variable 'params' could be declared final362
Avoid using Literals in Conditional Statements363
Avoid using Literals in Conditional Statements365
Parameter 'data' is not assigned and could be declared final382
Parameter 'pk' is not assigned and could be declared final382
Found 'DD'-anomaly for variable 'result' (lines '383'-'388').383 - 388
Local variable 'strData' could be declared final386
Avoid using Literals in Conditional Statements387
Parameter 'nonce' is not assigned and could be declared final403
Parameter 'msg' is not assigned and could be declared final403
Parameter 'pk' is not assigned and could be declared final403
Found 'DD'-anomaly for variable 'result' (lines '404'-'414').404 - 414
Local variable 'sp' could be declared final406
Local variable 'context' could be declared final408
Local variable 'messages' could be declared final411
Use ArrayList instead of Vector414
Parameter 'list' is not assigned and could be declared final425
Local variable 'result' could be declared final426
Avoid using Literals in Conditional Statements428
Parameter 'list' is not assigned and could be declared final445
Local variable 'result' could be declared final446
Local variable 'itemStart' could be declared final447
Found 'DU'-anomaly for variable 'itemStart' (lines '447'-'475').447 - 475
Local variable 'itemEnd' could be declared final448
Found 'DU'-anomaly for variable 'itemEnd' (lines '448'-'475').448 - 475
Avoid using Literals in Conditional Statements450
Found 'DD'-anomaly for variable 'end' (lines '453'-'455').453 - 455
Found 'DU'-anomaly for variable 'end' (lines '453'-'475').453 - 475
Avoid using Literals in Conditional Statements457
Local variable 'vencStr' could be declared final458
Found 'DD'-anomaly for variable 'enc' (lines '460'-'462').460 - 462
Avoid empty catch blocks463
Avoid using Literals in Conditional Statements464
Parameter 'map' is not assigned and could be declared final483
Local variable 'result' could be declared final484
Local variable 'itemStart' could be declared final485
Found 'DU'-anomaly for variable 'itemStart' (lines '485'-'503').485 - 503
Local variable 'itemEnd' could be declared final486
Found 'DU'-anomaly for variable 'itemEnd' (lines '486'-'503').486 - 503
Local variable 'valueStart' could be declared final487
Found 'DU'-anomaly for variable 'valueStart' (lines '487'-'503').487 - 503
Local variable 'valueEnd' could be declared final488
Found 'DU'-anomaly for variable 'valueEnd' (lines '488'-'503').488 - 503
Local variable 'nameStart' could be declared final489
Found 'DU'-anomaly for variable 'nameStart' (lines '489'-'503').489 - 503
Local variable 'nameEnd' could be declared final490
Found 'DU'-anomaly for variable 'nameEnd' (lines '490'-'503').490 - 503
Avoid using Literals in Conditional Statements493
Local variable 'iter' could be declared final494
Local variable 'key' could be declared final496
Local variable 'value' could be declared final497
Parameter 'list' is not assigned and could be declared final511
Local variable 'result' could be declared final512
If you run in Java5 and have concurrent access, you should use ConcurrentHashMap implementation512
Local variable 'itemStart' could be declared final513
Found 'DU'-anomaly for variable 'itemStart' (lines '513'-'536').513 - 536
Local variable 'itemEnd' could be declared final514
Found 'DU'-anomaly for variable 'itemEnd' (lines '514'-'536').514 - 536
Avoid using Literals in Conditional Statements516
Found 'DD'-anomaly for variable 'end' (lines '518'-'520').518 - 520
Found 'DU'-anomaly for variable 'end' (lines '518'-'536').518 - 536
Avoid using Literals in Conditional Statements521
Local variable 'name' could be declared final522
Local variable 'value' could be declared final523
Avoid instantiating new objects inside loops526
Parameter 'item' is not assigned and could be declared final545
Parameter 'delim' is not assigned and could be declared final545
Found 'DD'-anomaly for variable 'result' (lines '546'-'557').546 - 557
Local variable 'childStart' could be declared final548
Local variable 'childEnd' could be declared final549
Found 'DU'-anomaly for variable 'childEnd' (lines '549'-'560').549 - 560
Local variable 'beg' could be declared final551
Found 'DD'-anomaly for variable 'end' (lines '552'-'554').552 - 554
Avoid using Literals in Conditional Statements553
Parameter 'response' is not assigned and could be declared final567
Parameter 'response' is not assigned and could be declared final576
Parameter 'response' is not assigned and could be declared final587
Parameter 'error' is not assigned and could be declared final587
Avoid using Literals in Conditional Statements588
Found 'DD'-anomaly for variable 'status' (lines '589'-'591').589 - 591
Found 'DD'-anomaly for variable 'status' (lines '589'-'594').589 - 594
Avoid using Literals in Conditional Statements590
Parameter 'response' is not assigned and could be declared final607
Parameter 'request' is not assigned and could be declared final607
Parameter 'response' is not assigned and could be declared final619
Parameter 'request' is not assigned and could be declared final619
Parameter 'successCritical' is not assigned and could be declared final619
Avoid if (x != y) ..; else ..;620 - 640
Avoid using Literals in Conditional Statements620
Local variable 'status' could be declared final621
Avoid using Literals in Conditional Statements624
Avoid using Literals in Conditional Statements628
Parameter 'request' is not assigned and could be declared final649

de/fub/mi/idenpa/shared/exception/IdenpaMessageException.java

ViolationLine
Parameter 'message' is not assigned and could be declared final39
Parameter 'cause' is not assigned and could be declared final39
Parameter 'message' is not assigned and could be declared final49
Parameter 'cause' is not assigned and could be declared final59

de/fub/mi/idenpa/shared/storage/AbstractStorageObject.java

ViolationLine
Parameter 'uuid' is not assigned and could be declared final56
An empty method in an abstract class should be abstract instead79 - 81
Parameter 'time' is not assigned and could be declared final97
Parameter 'o' is not assigned and could be declared final111
Found 'DD'-anomaly for variable 'result' (lines '112'-'115').112 - 115
Parameter 'category' is not assigned and could be declared final126
Found 'DD'-anomaly for variable 'result' (lines '127'-'129').127 - 129

de/fub/mi/idenpa/shared/storage/CredentialInstance.java

ViolationLine
Private field 'm_strCredName' could be made final; it is only initialized in the declaration or constructor.43
Private field 'm_strIpkName' could be made final; it is only initialized in the declaration or constructor.46
Private field 'm_strValue' could be made final; it is only initialized in the declaration or constructor.49
Parameter 'credUri' is not assigned and could be declared final64
Parameter 'ipkUri' is not assigned and could be declared final64
Parameter 'value' is not assigned and could be declared final64
It is a good practice to call super() in a constructor64 - 69
Parameter 'val' is not assigned and could be declared final81
Parameter 'credUri' is not assigned and could be declared final81
Parameter 'ipkUri' is not assigned and could be declared final81
It is a good practice to call super() in a constructor81 - 86
Avoid using Literals in Conditional Statements121
Found 'DD'-anomaly for variable 'result' (lines '152'-'155').152 - 155
Local variable 'epoch' could be declared final153
Avoid using Literals in Conditional Statements154
Local variable 'result' could be declared final165
Local variable 'attribs' could be declared final167
Local variable 'result' could be declared final182
Local variable 'attribs' could be declared final184
Switch statements should have a default label186 - 194
A switch with less than 3 branches is inefficient, use a if statement instead.186 - 194
Avoid instantiating new objects inside loops188 - 189
Parameter 'attrib' is not assigned and could be declared final208
Found 'DD'-anomaly for variable 'result' (lines '209'-'215').209 - 215
Found 'DD'-anomaly for variable 'result' (lines '209'-'218').209 - 218
Local variable 'attribute' could be declared final211
Avoid using Literals in Conditional Statements212
Switch statements should have a default label213 - 220
A switch with less than 3 branches is inefficient, use a if statement instead.213 - 220

de/fub/mi/idenpa/shared/storage/I_ConfigStorage.java

ViolationLine
Avoid modifiers which are implied by the context39
Avoid modifiers which are implied by the context47
Avoid modifiers which are implied by the context52

de/fub/mi/idenpa/shared/storage/I_CredentialStorage.java

ViolationLine
Avoid modifiers which are implied by the context45
Avoid modifiers which are implied by the context54
Avoid modifiers which are implied by the context62
Avoid modifiers which are implied by the context69
Avoid modifiers which are implied by the context76
Avoid modifiers which are implied by the context81

de/fub/mi/idenpa/shared/storage/I_MasterSecretStorage.java

ViolationLine
Avoid modifiers which are implied by the context43
Avoid modifiers which are implied by the context50
Avoid modifiers which are implied by the context57
Avoid modifiers which are implied by the context62

de/fub/mi/idenpa/shared/storage/I_ProofStorage.java

ViolationLine
Avoid modifiers which are implied by the context46
Avoid modifiers which are implied by the context53
Avoid modifiers which are implied by the context60
Avoid modifiers which are implied by the context65

de/fub/mi/idenpa/shared/storage/I_SecureClientStorage.java

ViolationLine
No need to import a type that lives in the same package28
No need to import a type that lives in the same package29
No need to import a type that lives in the same package30
Avoid modifiers which are implied by the context44
Avoid modifiers which are implied by the context51
Avoid modifiers which are implied by the context58
Avoid modifiers which are implied by the context65
Avoid modifiers which are implied by the context70

de/fub/mi/idenpa/shared/storage/I_TempFileStorage.java

ViolationLine
Avoid modifiers which are implied by the context38
Avoid modifiers which are implied by the context43

de/fub/mi/idenpa/shared/storage/ProofInstance.java

ViolationLine
Private field 'm_strSpec' could be made final; it is only initialized in the declaration or constructor.44
Private field 'm_strValue' could be made final; it is only initialized in the declaration or constructor.47
Private field 'm_strReplyTo' could be made final; it is only initialized in the declaration or constructor.50
Parameter 'replyTo' is not assigned and could be declared final62
Parameter 'value' is not assigned and could be declared final62
Parameter 'proofSpecUri' is not assigned and could be declared final62
It is a good practice to call super() in a constructor62 - 67
Parameter 'replyTo' is not assigned and could be declared final76
Parameter 'proofVal' is not assigned and could be declared final76
Parameter 'specUri' is not assigned and could be declared final76
It is a good practice to call super() in a constructor76 - 81
Avoid using Literals in Conditional Statements107

de/fub/mi/idenpa/shared/storage/exception/NoSuchCredentialException.java

ViolationLine
Private field 'm_strCredUri' could be made final; it is only initialized in the declaration or constructor.34
Private field 'm_strIpkUri' could be made final; it is only initialized in the declaration or constructor.37
Parameter 'credUri' is not assigned and could be declared final45
Parameter 'ipkUri' is not assigned and could be declared final45

de/fub/mi/idenpa/shared/storage/exception/StorageInitializationException.java

ViolationLine
Private field 'm_numError' could be made final; it is only initialized in the declaration or constructor.50
Parameter 'errorCode' is not assigned and could be declared final57
It is a good practice to call super() in a constructor57 - 59