PMD Results

The following document contains the results of PMD 4.3.

Files

de/fub/mi/idenpa/idp/E_ConfigKey.java

ViolationLine
Parameter 'optional' is not assigned and could be declared final96
Parameter 'type' is not assigned and could be declared final96
Parameter 'cfg' is not assigned and could be declared final128
Avoid using Literals in Conditional Statements134
Avoid empty catch blocks137 - 138
Parameter 'cfg' is not assigned and could be declared final157
Parameter 'cfg' is not assigned and could be declared final179
Avoid using Literals in Conditional Statements185
Avoid empty catch blocks189 - 190
Parameter 'cfg' is not assigned and could be declared final209
Local variable 'result' could be declared final210
Parameter 'cfg' is not assigned and could be declared final225
Local variable 'params' could be declared final229
Local variable 'param' could be declared final231
Local variable 'map' could be declared final234
Avoid using Literals in Conditional Statements235
Deeply nested if..then statements are hard to read236 - 237
Avoid using Literals in Conditional Statements236
Avoid instantiating new objects inside loops237
Parameter 'param' is not assigned and could be declared final260
Parameter 'cfg' is not assigned and could be declared final260
Local variable 'keyval' could be declared final268
Prefer StringBuffer over += for concatenating strings272
Assigning an Object to null is a code smell. Consider refactoring.279
Assigning an Object to null is a code smell. Consider refactoring.280
Private field 'm_objId' could be made final; it is only initialized in the declaration or constructor.299
Private field 'm_objDest' could be made final; it is only initialized in the declaration or constructor.302
Parameter 'id' is not assigned and could be declared final312
Parameter 'dest' is not assigned and could be declared final312

de/fub/mi/idenpa/idp/EidAttributeServiceRequest.java

ViolationLine
Private field 'm_objAttribList' could be made final; it is only initialized in the declaration or constructor.38
Private field 'm_objResultHandler' could be made final; it is only initialized in the declaration or constructor.40
Parameter 'attributes' is not assigned and could be declared final48
Parameter 'resultHandler' is not assigned and could be declared final48

de/fub/mi/idenpa/idp/I_EidAttributeService.java

ViolationLine
Avoid modifiers which are implied by the context53 - 54
Avoid modifiers which are implied by the context65 - 66

de/fub/mi/idenpa/idp/I_EidHandlerRepository.java

ViolationLine
Avoid modifiers which are implied by the context40
Avoid modifiers which are implied by the context48

de/fub/mi/idenpa/idp/I_EidProviderWrapper.java

ViolationLine
Avoid modifiers which are implied by the context54 - 56
Avoid modifiers which are implied by the context67 - 68

de/fub/mi/idenpa/idp/I_EidResultHandler.java

ViolationLine
Avoid modifiers which are implied by the context45

de/fub/mi/idenpa/idp/I_EidSpecHandler.java

ViolationLine
Avoid modifiers which are implied by the context45
Avoid modifiers which are implied by the context53
Avoid modifiers which are implied by the context61
Avoid modifiers which are implied by the context69

de/fub/mi/idenpa/idp/I_IssuanceService.java

ViolationLine
Avoid modifiers which are implied by the context52
Avoid modifiers which are implied by the context67 - 68
Avoid modifiers which are implied by the context80
Avoid modifiers which are implied by the context89

de/fub/mi/idenpa/idp/I_IssuerConfig.java

ViolationLine
Avoid modifiers which are implied by the context47
Avoid modifiers which are implied by the context50
Avoid modifiers which are implied by the context53
Avoid modifiers which are implied by the context56
Avoid modifiers which are implied by the context59
Avoid modifiers which are implied by the context62
Avoid modifiers which are implied by the context73
Avoid modifiers which are implied by the context80
Avoid modifiers which are implied by the context87
Avoid modifiers which are implied by the context94
Avoid modifiers which are implied by the context101
Avoid modifiers which are implied by the context108
Avoid modifiers which are implied by the context115
Avoid modifiers which are implied by the context122
Avoid modifiers which are implied by the context129
Avoid modifiers which are implied by the context137
Avoid modifiers which are implied by the context145
Avoid modifiers which are implied by the context153
Avoid modifiers which are implied by the context160
Avoid modifiers which are implied by the context167
Avoid modifiers which are implied by the context174
Avoid modifiers which are implied by the context181
Avoid modifiers which are implied by the context188
Avoid modifiers which are implied by the context195
Avoid modifiers which are implied by the context202
Avoid modifiers which are implied by the context209
Avoid modifiers which are implied by the context218
Avoid modifiers which are implied by the context225

de/fub/mi/idenpa/idp/I_IssuerRepository.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 context55
Avoid modifiers which are implied by the context63

de/fub/mi/idenpa/idp/I_RevocationService.java

ViolationLine
Avoid modifiers which are implied by the context46
Avoid modifiers which are implied by the context54
Avoid modifiers which are implied by the context62
Avoid modifiers which are implied by the context71
Avoid modifiers which are implied by the context78

de/fub/mi/idenpa/idp/I_SecureIssuerStorage.java

ViolationLine
Avoid modifiers which are implied by the context34
Avoid modifiers which are implied by the context37
Avoid modifiers which are implied by the context40
Avoid modifiers which are implied by the context50
Avoid modifiers which are implied by the context59
Avoid modifiers which are implied by the context68
Avoid modifiers which are implied by the context76
Avoid modifiers which are implied by the context84
Avoid modifiers which are implied by the context93

de/fub/mi/idenpa/idp/I_SpecHandler.java

ViolationLine
Avoid modifiers which are implied by the context45
Avoid modifiers which are implied by the context52
Avoid modifiers which are implied by the context59
Avoid modifiers which are implied by the context66
Avoid modifiers which are implied by the context75

de/fub/mi/idenpa/idp/I_SpecHandlerRepository.java

ViolationLine
Avoid modifiers which are implied by the context40
Avoid modifiers which are implied by the context48

de/fub/mi/idenpa/idp/I_TempFileStorage.java

ViolationLine
Avoid modifiers which are implied by the context39
Avoid modifiers which are implied by the context46

de/fub/mi/idenpa/idp/I_VerificationService.java

ViolationLine
Avoid modifiers which are implied by the context42

de/fub/mi/idenpa/idp/I_VerifierRepository.java

ViolationLine
Avoid modifiers which are implied by the context43
Avoid modifiers which are implied by the context51
Avoid modifiers which are implied by the context59

de/fub/mi/idenpa/idp/IssuerRepository.java

ViolationLine
A class which only has private constructors should be final40 - 187
Private field 'm_objCfg' could be made final; it is only initialized in the declaration or constructor.54
Private field 'm_objStorage' could be made final; it is only initialized in the declaration or constructor.57
Private field 'm_objTempStorage' could be made final; it is only initialized in the declaration or constructor.60
Private field 'm_objIssuerRepo' could be made final; it is only initialized in the declaration or constructor.63
Private field 'm_objTimeRepo' could be made final; it is only initialized in the declaration or constructor.66
Parameter 'tempStorage' is not assigned and could be declared final76
Parameter 'cfg' is not assigned and could be declared final76
Parameter 'storage' is not assigned and could be declared final76
Use block level rather than method level synchronization95 - 100
Parameter 'tempStorage' is not assigned and could be declared final95
Parameter 'config' is not assigned and could be declared final95
Parameter 'storage' is not assigned and could be declared final95
Avoid using Literals in Conditional Statements96
Parameter 'handler' is not assigned and could be declared final114
Found 'DD'-anomaly for variable 'result' (lines '115'-'117').115 - 117
Local variable 'id' could be declared final118
Parameter 'uuid' is not assigned and could be declared final131
Found 'DD'-anomaly for variable 'result' (lines '132'-'134').132 - 134
Avoid if (x != y) ..; else ..;135 - 140
Avoid using Literals in Conditional Statements135
Local variable 'currentTime' could be declared final150
Found 'DU'-anomaly for variable 'currentTime' (lines '150'-'167').150 - 167
Local variable 'iter' could be declared final152
Local variable 'candidates' could be declared final153
Local variable 'key' could be declared final155
Local variable 'val' could be declared final156
Parameter 'uuid' is not assigned and could be declared final173
Found 'DD'-anomaly for variable 'result' (lines '174'-'176').174 - 176
Avoid if (x != y) ..; else ..;177 - 181
Avoid using Literals in Conditional Statements177

de/fub/mi/idenpa/idp/IssuerService.java

ViolationLine
Private field 'm_objCfg' could be made final; it is only initialized in the declaration or constructor.69
Private field 'm_strUuid' could be made final; it is only initialized in the declaration or constructor.72
Private field 'm_objSpecHandler' could be made final; it is only initialized in the declaration or constructor.78
Private field 'm_objStorage' could be made final; it is only initialized in the declaration or constructor.81
Private field 'm_objTempStorage' could be made final; it is only initialized in the declaration or constructor.96
Avoid unused private fields such as 'm_objEidData'.99
Parameter 'cfg' is not assigned and could be declared final109
Parameter 'handler' is not assigned and could be declared final109
Parameter 'tempStorage' is not assigned and could be declared final110
Parameter 'storage' is not assigned and could be declared final110
Parameter 'msg' is not assigned and could be declared final170
Found 'DD'-anomaly for variable 'result' (lines '173'-'184').173 - 184
Avoid using Literals in Conditional Statements175
Local variable 'outMsg' could be declared final177
Found 'DD'-anomaly for variable 'strMsg' (lines '181'-'182').181 - 182
Parameter 'msg' is not assigned and could be declared final226
Local variable 'returnString' could be declared final229
Parameter 'str' is not assigned and could be declared final240
Found 'DD'-anomaly for variable 'result' (lines '243'-'245').243 - 245
Found 'DD'-anomaly for variable 'result' (lines '281'-'297').281 - 297
Local variable 'v' could be declared final292
Parameter 'attributes' is not assigned and could be declared final328
Found 'DD'-anomaly for variable 'result' (lines '331'-'346').331 - 346
Found 'DD'-anomaly for variable 'result' (lines '331'-'350').331 - 350
Avoid using Literals in Conditional Statements332
Local variable 'iter' could be declared final333
Found 'DU'-anomaly for variable 'iter' (lines '333'-'357').333 - 357
Avoid if (x != y) ..; else ..;334 - 352
Local variable 'encList' could be declared final336
Local variable 'key' could be declared final338
Local variable 'value' could be declared final339
Local variable 'random' could be declared final340
Local variable 'veo' could be declared final341 - 343
Avoid instantiating new objects inside loops341 - 343
Parameter 'data' is not assigned and could be declared final367
Found 'DD'-anomaly for variable 'result' (lines '370'-'374').370 - 374
Avoid using Literals in Conditional Statements372
Parameter 'specId' is not assigned and could be declared final394
Parameter 'cfg' is not assigned and could be declared final395
Local variable 'result' could be declared final398
Parameter 'vepkUri' is not assigned and could be declared final417
Parameter 'pk' is not assigned and could be declared final417
Avoid if (x != y) ..; else ..;420 - 428
Local variable 'file' could be declared final421
Parameter 'eidData' is not assigned and could be declared final438

de/fub/mi/idenpa/idp/ServiceHandler.java

ViolationLine
A class which only has private constructors should be final37 - 155
Private field 'm_objStorage' could be made final; it is only initialized in the declaration or constructor.43
Parameter 'storage' is not assigned and could be declared final63
Use block level rather than method level synchronization73 - 75
Use block level rather than method level synchronization84 - 87
Parameter 'storage' is not assigned and could be declared final84
Use block level rather than method level synchronization94 - 96

de/fub/mi/idenpa/idp/StorageWrapper.java

ViolationLine
A class which only has private constructors should be final38 - 221
Private field 'm_objCfg' could be made final; it is only initialized in the declaration or constructor.44
Parameter 'cfg' is not assigned and could be declared final70
Parameter 'secStorage' is not assigned and could be declared final86
Parameter 'eidRepo' is not assigned and could be declared final86
Parameter 'verifierRepo' is not assigned and could be declared final86
Parameter 'specRepo' is not assigned and could be declared final86
Parameter 'issuerRepo' is not assigned and could be declared final86
Parameter 'tmpRepo' is not assigned and could be declared final86
Parameter 'cfg' is not assigned and could be declared final86
Use block level rather than method level synchronization101 - 103
Use block level rather than method level synchronization112 - 115
Parameter 'cfg' is not assigned and could be declared final112
Use block level rather than method level synchronization122 - 124
Use block level rather than method level synchronization202 - 205
Parameter 'secStorage' is not assigned and could be declared final202
Parameter 'eidRepo' is not assigned and could be declared final202
Parameter 'verifierRepo' is not assigned and could be declared final202
Parameter 'specRepo' is not assigned and could be declared final202
Parameter 'issuerRepo' is not assigned and could be declared final202
Parameter 'tmpRepo' is not assigned and could be declared final202
Parameter 'cfg' is not assigned and could be declared final202

de/fub/mi/idenpa/idp/exception/ConfigurationException.java

ViolationLine
Private field 'm_objKey' could be made final; it is only initialized in the declaration or constructor.36
Private field 'm_strVal' could be made final; it is only initialized in the declaration or constructor.39
Parameter 'value' is not assigned and could be declared final47
Parameter 'key' is not assigned and could be declared final47

de/fub/mi/idenpa/idp/exception/IssuerServiceInitException.java

ViolationLine
Parameter 't' is not assigned and could be declared final38

de/fub/mi/idenpa/idp/impl/EidAttributeService.java

ViolationLine
Private field 'm_objSrvHandler' could be made final; it is only initialized in the declaration or constructor.60
Parameter 'handler' is not assigned and could be declared final67
Parameter 'srequest' is not assigned and could be declared final75
Parameter 'request' is not assigned and could be declared final76
Parameter 'sresponse' is not assigned and could be declared final76
Local variable 'handler' could be declared final80
Local variable 'attribs' could be declared final81
Avoid if (x != y) ..; else ..;82 - 92
Local variable 'handlerId' could be declared final83
Local variable 'wrapper' could be declared final85
Parameter 'srequest' is not assigned and could be declared final108
Parameter 'sresponse' is not assigned and could be declared final109
Local variable 'result' could be declared final112
Local variable 'handlerId' could be declared final113
Avoid if (x != y) ..; else ..;114 - 138
Avoid using Literals in Conditional Statements114
Local variable 'handler' could be declared final115
Avoid if (x != y) ..; else ..;116 - 135
Avoid using Literals in Conditional Statements116
Local variable 'idata' could be declared final117
Avoid if (x != y) ..; else ..;118 - 132
Avoid using Literals in Conditional Statements118
Local variable 'redCtx' could be declared final121

de/fub/mi/idenpa/idp/impl/IssuanceService.java

ViolationLine
The class 'IssuanceService' has a Cyclomatic Complexity of 6 (Highest = 14).67 - 311
Private field 'm_objEidAttrServ' could be made final; it is only initialized in the declaration or constructor.74
Private field 'm_objIssuerRepo' could be made final; it is only initialized in the declaration or constructor.77
Private field 'm_objSpecHandlerRepo' could be made final; it is only initialized in the declaration or constructor.80
Private field 'm_objIssuerCfg' could be made final; it is only initialized in the declaration or constructor.83
Avoid unused private fields such as 'm_objStorage'.86
Private field 'm_objStorage' could be made final; it is only initialized in the declaration or constructor.86
Perhaps 'm_objStorage' could be replaced by a local variable.86
Parameter 'wrapper' is not assigned and could be declared final94
Parameter 'eidAttrSrv' is not assigned and could be declared final95
Parameter 'uuid' is not assigned and could be declared final110
Parameter 'msg' is not assigned and could be declared final110
Local variable 'service' could be declared final115
Avoid using Literals in Conditional Statements116
Local variable 'isresp' could be declared final117
Avoid using Literals in Conditional Statements118
The method 'processDataRequest' has a Cyclomatic Complexity of 14.132 - 207
Parameter 'srequest' is not assigned and could be declared final132
Parameter 'irequest' is not assigned and could be declared final133
Parameter 'sresponse' is not assigned and could be declared final133
Avoid using Literals in Conditional Statements140
Local variable 'specId' could be declared final141
Local variable 'specHandler' could be declared final142 - 143
Local variable 'innerType' could be declared final144
Found 'DD'-anomaly for variable 'vepkUri' (lines '145'-'148').145 - 148
Found 'DU'-anomaly for variable 'vepkUri' (lines '145'-'207').145 - 207
Found 'DD'-anomaly for variable 'vepData' (lines '146'-'150').146 - 150
Found 'DU'-anomaly for variable 'vepData' (lines '146'-'207').146 - 207
Avoid using Literals in Conditional Statements147
Found 'DU'-anomaly for variable 'vepkUri' (lines '148'-'207').148 - 207
Deeply nested if..then statements are hard to read149 - 151
Avoid using Literals in Conditional Statements149
Found 'DU'-anomaly for variable 'vepData' (lines '150'-'207').150 - 207
Avoid if (x != y) ..; else ..;153 - 185
Avoid using Literals in Conditional Statements153
Local variable 'resultHandler' could be declared final155 - 156
Avoid if (x != y) ..; else ..;157 - 171
Avoid using Literals in Conditional Statements157
Local variable 'attribs' could be declared final159 - 160
Local variable 'eidrequest' could be declared final161 - 162
Assigning an Object to null is a code smell. Consider refactoring.166
Local variable 'service' could be declared final173 - 174
Local variable 'resp' could be declared final177
Avoid using Literals in Conditional Statements178
Avoid using Literals in Conditional Statements195
Local variable 'ctx' could be declared final198
Parameter 'specId' is not assigned and could be declared final213
Local variable 'ireq' could be declared final218 - 219
Avoid using Literals in Conditional Statements220
Parameter 'request' is not assigned and could be declared final232
Avoid using Literals in Conditional Statements238
Local variable 'specId' could be declared final239
Local variable 'specHandler' could be declared final240
Local variable 'innerType' could be declared final241
Found 'DD'-anomaly for variable 'vepkUri' (lines '242'-'245').242 - 245
Found 'DU'-anomaly for variable 'vepkUri' (lines '242'-'270').242 - 270
Found 'DD'-anomaly for variable 'vepData' (lines '243'-'247').243 - 247
Found 'DU'-anomaly for variable 'vepData' (lines '243'-'270').243 - 270
Avoid using Literals in Conditional Statements244
Found 'DU'-anomaly for variable 'vepkUri' (lines '245'-'270').245 - 270
Avoid using Literals in Conditional Statements246
Found 'DU'-anomaly for variable 'vepData' (lines '247'-'270').247 - 270
Avoid if (x != y) ..; else ..;250 - 259
Avoid using Literals in Conditional Statements250
Local variable 'service' could be declared final251
Local variable 'idresp' could be declared final254
Avoid using Literals in Conditional Statements255
Parameter 'request' is not assigned and could be declared final276
Local variable 'uuid' could be declared final282
Avoid if (x != y) ..; else ..;283 - 299
Avoid using Literals in Conditional Statements283
Local variable 'strMsg' could be declared final284
Avoid if (x != y) ..; else ..;285 - 295
Avoid using Literals in Conditional Statements285
Local variable 'msg' could be declared final286
Avoid if (x != y) ..; else ..;287 - 292
Avoid using Literals in Conditional Statements287

de/fub/mi/idenpa/idp/impl/RevocationService.java

ViolationLine
Private field 'm_objStorage' could be made final; it is only initialized in the declaration or constructor.71
Private field 'm_objEidAttrSrv' could be made final; it is only initialized in the declaration or constructor.74
Private field 'm_objVerifierRepo' could be made final; it is only initialized in the declaration or constructor.77
Parameter 'eidAttribService' is not assigned and could be declared final85
Parameter 'storage' is not assigned and could be declared final85
Parameter 'ownerId' is not assigned and could be declared final95
Found 'DD'-anomaly for variable 'result' (lines '98'-'101').98 - 101
Avoid using Literals in Conditional Statements99
Parameter 'uuid' is not assigned and could be declared final112
Found 'DD'-anomaly for variable 'result' (lines '115'-'118').115 - 118
Avoid using Literals in Conditional Statements116
Parameter 'srequest' is not assigned and could be declared final129
Parameter 'sresponse' is not assigned and could be declared final130
Local variable 'resultHandler' could be declared final134
Avoid if (x != y) ..; else ..;135 - 142
Avoid using Literals in Conditional Statements135
Local variable 'attribs' could be declared final136
Local variable 'request' could be declared final138
Avoid empty if statements140 - 142
Local variable 'revokeId' could be declared final164
Local variable 'service' could be declared final165
Local variable 'rreq' could be declared final167
Avoid using Literals in Conditional Statements168
Parameter 'nonce' is not assigned and could be declared final185
Parameter 'pop' is not assigned and could be declared final185
Local variable 'service' could be declared final190
Avoid if (x != y) ..; else ..;191 - 214
Avoid using Literals in Conditional Statements191
Local variable 'vres' could be declared final192
Local variable 'veName' could be declared final195
Local variable 'enc' could be declared final196
Local variable 'value' could be declared final197
Avoid if (x != y) ..; else ..;198 - 206
Avoid using Literals in Conditional Statements198
Local variable 'certId' could be declared final199
Local variable 'done' could be declared final200
Parameter 'response' is not assigned and could be declared final227
Avoid using Literals in Conditional Statements233
Local variable 'dataStr' could be declared final234
Avoid if (x != y) ..; else ..;235 - 254
Avoid using Literals in Conditional Statements235
Local variable 'p' could be declared final236
Local variable 'nonce' could be declared final237
Avoid if (x != y) ..; else ..;238 - 250
Local variable 'rres' could be declared final239
Avoid using Literals in Conditional Statements240
Avoid using Literals in Conditional Statements246

de/fub/mi/idenpa/idp/impl/VerificationService.java

ViolationLine
Private field 'm_objStorage' could be made final; it is only initialized in the declaration or constructor.55
Parameter 'storage' is not assigned and could be declared final62
Parameter 'enc' is not assigned and could be declared final73
Local variable 'vesk' could be declared final76
Local variable 'certId' could be declared final78
Local variable 'returnint' could be declared final80 - 81
Parameter 'request' is not assigned and could be declared final90
Avoid using Literals in Conditional Statements97
Found 'DD'-anomaly for variable 'replyTo' (lines '98'-'100').98 - 100
Local variable 'dataStr' could be declared final106
Local variable 've' could be declared final107
Local variable 'status' could be declared final108

de/fub/mi/idenpa/idp/impl/eid/EidHandlerRepository.java

ViolationLine
A class which only has private constructors should be final38 - 84
Private field 'm_objHandlerRepo' could be made final; it is only initialized in the declaration or constructor.44
Use block level rather than method level synchronization58 - 62
Avoid using Literals in Conditional Statements59
Use block level rather than method level synchronization68 - 74
Parameter 'handler' is not assigned and could be declared final68
Local variable 'result' could be declared final69
Use block level rather than method level synchronization80 - 82
Parameter 'uuid' is not assigned and could be declared final80

de/fub/mi/idenpa/idp/impl/eid/IssuanceEidResultHandler.java

ViolationLine
Private field 'm_objIRepo' could be made final; it is only initialized in the declaration or constructor.49
Perhaps 'm_objIRepo' could be replaced by a local variable.49
Private field 'm_objService' could be made final; it is only initialized in the declaration or constructor.52
Parameter 'vepkUri' is not assigned and could be declared final62
Parameter 'issuerRepo' is not assigned and could be declared final62
Parameter 'shandler' is not assigned and could be declared final62
Parameter 'pkContent' is not assigned and could be declared final62
Parameter 'resultData' is not assigned and could be declared final72
Local variable 'returnIssueDataResponseType' could be declared final76 - 77

de/fub/mi/idenpa/idp/impl/eid/RevocationEidResultHandler.java

ViolationLine
Private field 'm_objService' could be made final; it is only initialized in the declaration or constructor.52
Private field 'm_objCfg' could be made final; it is only initialized in the declaration or constructor.55
Parameter 'revocationService' is not assigned and could be declared final63
Parameter 'config' is not assigned and could be declared final64
Parameter 'resultData' is not assigned and could be declared final73
Local variable 'result' could be declared final76
Avoid if (x != y) ..; else ..;78 - 89
Avoid using Literals in Conditional Statements78
Local variable 'data' could be declared final79
If you run in Java5 and have concurrent access, you should use ConcurrentHashMap implementation79
Local variable 'ri' could be declared final80
Avoid if (x != y) ..; else ..;81 - 86
Avoid using Literals in Conditional Statements81

de/fub/mi/idenpa/idp/impl/eid/TestProviderWrapper.java

ViolationLine
Private field 'm_objEidAttrSrv' could be made final; it is only initialized in the declaration or constructor.54
Parameter 'eidAttrSrv' is not assigned and could be declared final61
Parameter 'srequest' is not assigned and could be declared final69
Parameter 'sresponse' is not assigned and could be declared final70
Parameter 'handlerId' is not assigned and could be declared final71
Parameter 'attribs' is not assigned and could be declared final71
Parameter 'srequest' is not assigned and could be declared final83
Parameter 'sresponse' is not assigned and could be declared final84
Local variable 'attribResults' could be declared final87
Local variable 'returnEidResult' could be declared final107 - 108

de/fub/mi/idenpa/idp/impl/spec/DefaultSpecHandler.java

ViolationLine
Private field 'm_objCredDefId' could be made final; it is only initialized in the declaration or constructor.59
Private field 'm_objCredDefLoc' could be made final; it is only initialized in the declaration or constructor.62
Private field 'm_objCfg' could be made final; it is only initialized in the declaration or constructor.65
Parameter 'credDefId' is not assigned and could be declared final80
Parameter 'cfg' is not assigned and could be declared final80
Parameter 'credDefLocation' is not assigned and could be declared final80
Local variable 'sp' could be declared final91
Local variable 'result' could be declared final92
Avoid using Literals in Conditional Statements94
Found 'DD'-anomaly for variable 'count' (lines '95'-'119').95 - 119
Found 'DD'-anomaly for variable 'count' (lines '95'-'138').95 - 138
Local variable 'eidAttrs' could be declared final96
If you run in Java5 and have concurrent access, you should use ConcurrentHashMap implementation96
Found 'DU'-anomaly for variable 'eidAttrs' (lines '96'-'157').96 - 157
Local variable 'veAttrs' could be declared final97
If you run in Java5 and have concurrent access, you should use ConcurrentHashMap implementation97
Found 'DU'-anomaly for variable 'veAttrs' (lines '97'-'157').97 - 157
Found 'DD'-anomaly for variable 'value' (lines '105'-'115').105 - 115
Found 'DD'-anomaly for variable 'rawVal' (lines '106'-'108').106 - 108
Found 'DD'-anomaly for variable 'rawVal' (lines '106'-'112').106 - 112
Found 'DD'-anomaly for variable 'count' (lines '119'-'119').119
Found 'DD'-anomaly for variable 'count' (lines '119'-'138').119 - 138
Found 'DD'-anomaly for variable 'count' (lines '138'-'138').138
Avoid using Literals in Conditional Statements190
Local variable 'attribs' could be declared final201
Parameter 'eidData' is not assigned and could be declared final219
Parameter 'certId' is not assigned and could be declared final227
Found 'DD'-anomaly for variable 'result' (lines '236'-'238').236 - 238
Avoid using Literals in Conditional Statements237
Local variable 'result' could be declared final248
If you run in Java5 and have concurrent access, you should use ConcurrentHashMap implementation248
Local variable 'iv' could be declared final270
Local variable 'iter' could be declared final271
Local variable 'key' could be declared final273
Local variable 'o' could be declared final274

de/fub/mi/idenpa/idp/impl/spec/NoEidSpecHandler.java

ViolationLine
Avoid unused private fields such as 'm_objLog'.56
Private field 'm_objCredDefId' could be made final; it is only initialized in the declaration or constructor.59
Private field 'm_objCredDefLoc' could be made final; it is only initialized in the declaration or constructor.62
Private field 'm_objCfg' could be made final; it is only initialized in the declaration or constructor.65
Parameter 'credDefId' is not assigned and could be declared final77
Parameter 'cfg' is not assigned and could be declared final77
Parameter 'credDefLocation' is not assigned and could be declared final77
Local variable 'sp' could be declared final88
Local variable 'result' could be declared final89
Local variable 'spec' could be declared final90
Local variable 'structure' could be declared final91
Local variable 'structList' could be declared final92
Substitute calls to size() == 0 (or size() != 0) with calls to isEmpty()93
Avoid using Literals in Conditional Statements93
Found 'DU'-anomaly for variable 'count' (lines '94'-'118').94 - 118
Local variable 'dtype' could be declared final96
Local variable 'name' could be declared final97
Found 'DD'-anomaly for variable 'value' (lines '98'-'101').98 - 101
Found 'DD'-anomaly for variable 'value' (lines '98'-'104').98 - 104
Found 'DD'-anomaly for variable 'value' (lines '98'-'107').98 - 107
Switch statements should have a default label99 - 111
Avoid instantiating new objects inside loops101
Avoid instantiating new objects inside loops104
Avoid instantiating new objects inside loops107
Avoid using Literals in Conditional Statements151
Local variable 'result' could be declared final162
If you run in Java5 and have concurrent access, you should use ConcurrentHashMap implementation162
Local variable 'iv' could be declared final164
Local variable 'iter' could be declared final165
Local variable 'key' could be declared final167
Local variable 'o' could be declared final168

de/fub/mi/idenpa/idp/impl/spec/SpecHandlerRepository.java

ViolationLine
A class which only has private constructors should be final39 - 111
Private field 'm_objRepo' could be made final; it is only initialized in the declaration or constructor.45
Parameter 'icfg' is not assigned and could be declared final52
Use block level rather than method level synchronization64 - 68
Parameter 'icfg' is not assigned and could be declared final64
Avoid using Literals in Conditional Statements65
Parameter 'specId' is not assigned and could be declared final74
Found 'DD'-anomaly for variable 'result' (lines '75'-'78').75 - 78
Parameter 'specId' is not assigned and could be declared final88
Parameter 'handler' is not assigned and could be declared final88
Parameter 'icfg' is not assigned and could be declared final99
Avoid using Literals in Conditional Statements100
Local variable 'iter' could be declared final101
Local variable 'map' could be declared final103
Avoid instantiating new objects inside loops105
Avoid instantiating new objects inside loops107

de/fub/mi/idenpa/idp/impl/storage/Certificate.java

ViolationLine
Private field 'm_strOwnerId' could be made final; it is only initialized in the declaration or constructor.35
Parameter 'timestamp' is not assigned and could be declared final50
Parameter 'status' is not assigned and could be declared final50
Parameter 'ownerId' is not assigned and could be declared final50
Parameter 'timestamp' is not assigned and could be declared final85
Parameter 'status' is not assigned and could be declared final103

de/fub/mi/idenpa/idp/impl/storage/SecureIssuerStorage.java

ViolationLine
A class which only has private constructors should be final41 - 208
Private field 'm_objCertRepo' could be made final; it is only initialized in the declaration or constructor.48
Private field 'm_objCrl' could be made final; it is only initialized in the declaration or constructor.51
Private field 'm_objIdMap' could be made final; it is only initialized in the declaration or constructor.54
Avoid unused constructor parameters such as 'cfg'.64 - 69
Parameter 'cfg' is not assigned and could be declared final64
Use block level rather than method level synchronization77 - 86
Parameter 'cfg' is not assigned and could be declared final77
Avoid using Literals in Conditional Statements80
Parameter 'ownerId' is not assigned and could be declared final92
Parameter 'uuid' is not assigned and could be declared final92
Local variable 'cert' could be declared final94
Parameter 'uuid' is not assigned and could be declared final107
Found 'DD'-anomaly for variable 'result' (lines '110'-'115').110 - 115
Avoid using Literals in Conditional Statements112
Local variable 'ownerId' could be declared final113
Avoid using Literals in Conditional Statements114
Parameter 'ownerId' is not assigned and could be declared final128
Found 'DD'-anomaly for variable 'result' (lines '131'-'137').131 - 137
Avoid using Literals in Conditional Statements133
Local variable 'cert' could be declared final135
Avoid using Literals in Conditional Statements136
Local variable 'cert' could be declared final141
Deeply nested if..then statements are hard to read142 - 143
Avoid using Literals in Conditional Statements142
Parameter 'ownerId' is not assigned and could be declared final157
Found 'DD'-anomaly for variable 'cert' (lines '160'-'162').160 - 162
Avoid if (x != y) ..; else ..;163 - 167
Avoid using Literals in Conditional Statements163
Assigning an Object to null is a code smell. Consider refactoring.167
Avoid if (x != y) ..; else ..;169 - 176
Avoid using Literals in Conditional Statements169
Parameter 'uuid' is not assigned and could be declared final185
Avoid unused local variables such as 'cert'.188
Local variable 'cert' could be declared final188
Found 'DU'-anomaly for variable 'cert' (lines '188'-'195').188 - 195
Local variable 'ownerId' could be declared final189
Avoid using Literals in Conditional Statements190
Local variable 'returnString' could be declared final204

de/fub/mi/idenpa/idp/impl/storage/TempFileStorage.java

ViolationLine
Private field 'm_objBaseDir' could be made final; it is only initialized in the declaration or constructor.47
Parameter 'cfg' is not assigned and could be declared final54
Local variable 'baseDir' could be declared final56
Found 'DD'-anomaly for variable 'result' (lines '72'-'74').72 - 74
Parameter 'absoluteFileName' is not assigned and could be declared final92
Local variable 'f' could be declared final95
Parameter 'content' is not assigned and could be declared final107
Found 'DD'-anomaly for variable 'result' (lines '110'-'117').110 - 117
Avoid using Literals in Conditional Statements112
Local variable 'fileName' could be declared final114

de/fub/mi/idenpa/idp/impl/verify/ProveResult.java

ViolationLine
Private field 'm_bValid' could be made final; it is only initialized in the declaration or constructor.37
Private field 'm_objProof' could be made final; it is only initialized in the declaration or constructor.40
Parameter 'proof' is not assigned and could be declared final52
Parameter 'isValid' is not assigned and could be declared final52
Parameter 'name' is not assigned and could be declared final83
Found 'DD'-anomaly for variable 'result' (lines '84'-'87').84 - 87
Avoid using Literals in Conditional Statements86

de/fub/mi/idenpa/idp/impl/verify/VerifierRepository.java

ViolationLine
A class which only has private constructors should be final43 - 160
Private field 'm_objVerifierRepo' could be made final; it is only initialized in the declaration or constructor.57
Private field 'm_objTimeRepo' could be made final; it is only initialized in the declaration or constructor.60
Private field 'm_objCfg' could be made final; it is only initialized in the declaration or constructor.63
Parameter 'cfg' is not assigned and could be declared final71
Use block level rather than method level synchronization86 - 91
Parameter 'config' is not assigned and could be declared final86
Avoid using Literals in Conditional Statements87
Parameter 'specUri' is not assigned and could be declared final105
Found 'DD'-anomaly for variable 'result' (lines '106'-'108').106 - 108
Local variable 'id' could be declared final109
Parameter 'uuid' is not assigned and could be declared final122
Found 'DD'-anomaly for variable 'result' (lines '123'-'125').123 - 125
Avoid if (x != y) ..; else ..;126 - 131
Avoid using Literals in Conditional Statements126
Local variable 'currentTime' could be declared final141
Found 'DU'-anomaly for variable 'currentTime' (lines '141'-'158').141 - 158
Local variable 'iter' could be declared final143
Local variable 'candidates' could be declared final144
Local variable 'key' could be declared final146
Local variable 'val' could be declared final147

de/fub/mi/idenpa/idp/impl/verify/VerifierService.java

ViolationLine
Private field 'm_objCfg' could be made final; it is only initialized in the declaration or constructor.62
Private field 'm_strStructId' could be made final; it is only initialized in the declaration or constructor.71
Parameter 'specUri' is not assigned and could be declared final82
Parameter 'cfg' is not assigned and could be declared final82
Avoid using Literals in Conditional Statements95
Found 'DD'-anomaly for variable 'result' (lines '111'-'113').111 - 113
Parameter 'msg' is not assigned and could be declared final131
Local variable 'returnString' could be declared final134
Parameter 'proof' is not assigned and could be declared final145
Found 'DD'-anomaly for variable 'result' (lines '148'-'165').148 - 165
Local variable 'encs' could be declared final152
Substitute calls to size() == 0 (or size() != 0) with calls to isEmpty()156
Avoid using Literals in Conditional Statements156
Local variable 'spec' could be declared final159
Local variable 'isValid' could be declared final163
Parameter 'str' is not assigned and could be declared final180
Found 'DD'-anomaly for variable 'result' (lines '183'-'185').183 - 185
Parameter 'enc' is not assigned and could be declared final202
Found 'DD'-anomaly for variable 'result' (lines '205'-'208').205 - 208
Avoid using Literals in Conditional Statements207
Found 'DD'-anomaly for variable 'result' (lines '224'-'230').224 - 230
Avoid using Literals in Conditional Statements226
Local variable 'values' could be declared final228
Avoid using Literals in Conditional Statements229
Local variable 'iter' could be declared final231
Local variable 'key' could be declared final233
Avoid instantiating new objects inside loops236
Local variable 'result' could be declared final261
Avoid using Literals in Conditional Statements263
Local variable 'values' could be declared final265
Local variable 'iter' could be declared final266
Local variable 'key' could be declared final268
Avoid instantiating new objects inside loops269