PMD Results

The following document contains the results of PMD 3.9.

Files

net/sf/ehcache/Cache.java

ViolationLine
These nested if statements could be combined542 - 546
These nested if statements could be combined561 - 564
A method should have only one exit point, and that should be the last statement in the method577
Found 'DU'-anomaly for variable 'element' (lines '659'-'694').659 - 694
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '659'-'694').659 - 694
Found 'DU'-anomaly for variable 'element' (lines '736'-'753').736 - 753
Found 'DU'-anomaly for variable 'loaderArgument' (lines '830'-'854').830 - 854
Found 'DU'-anomaly for variable 'loader' (lines '830'-'854').830 - 854
A method should have only one exit point, and that should be the last statement in the method834
A method should have only one exit point, and that should be the last statement in the method838
A method should have only one exit point, and that should be the last statement in the method845
Found 'DU'-anomaly for variable 'key' (lines '874'-'891').874 - 891
A method should have only one exit point, and that should be the last statement in the method879
Found 'UR'-anomaly for variable 'key' (lines '918'-'918').918
Found 'DU'-anomaly for variable 'loaderArgument' (lines '918'-'978').918 - 978
A method should have only one exit point, and that should be the last statement in the method920
Found 'DD'-anomaly for variable 'map' (lines '922'-'929').922 - 929
Found 'DU'-anomaly for variable 'missingKeys' (lines '924'-'978').924 - 978
Found 'DD'-anomaly for variable 'key' (lines '927'-'932').927 - 932
Found 'DD'-anomaly for variable 'key' (lines '927'-'952').927 - 952
Found 'DU'-anomaly for variable 'key' (lines '927'-'978').927 - 978
Found 'DU'-anomaly for variable 'keys' (lines '1,001'-'1,013').1001 - 1013
Found 'DU'-anomaly for variable 'argument' (lines '1,001'-'1,013').1001 - 1013
A method should have only one exit point, and that should be the last statement in the method1007
Assigning an Object to null is a code smell. Consider refactoring.1177
Found 'DU'-anomaly for variable 'updateStatistics' (lines '1,187'-'1,213').1187 - 1213
A method should have only one exit point, and that should be the last statement in the method1189
Assigning an Object to null is a code smell. Consider refactoring.1205
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '1,355'-'1,406').1355 - 1406
Found 'DU'-anomaly for variable 'notifyListeners' (lines '1,355'-'1,406').1355 - 1406
Found 'DD'-anomaly for variable 'removed' (lines '1,359'-'1,387').1359 - 1387
Found 'DD'-anomaly for variable 'removed' (lines '1,359'-'1,396').1359 - 1396
Assigning an Object to null is a code smell. Consider refactoring.1366
Found 'DD'-anomaly for variable 'elementFromDiskStore' (lines '1,366'-'1,370').1366 - 1370
These nested if statements could be combined1368 - 1371
Found 'DD'-anomaly for variable 'removeNotified' (lines '1,376'-'1,393').1376 - 1393
Found 'DD'-anomaly for variable 'removeNotified' (lines '1,376'-'1,383').1376 - 1383
Found 'DD'-anomaly for variable 'removeNotified' (lines '1,383'-'1,393').1383 - 1393
Found 'DD'-anomaly for variable 'removed' (lines '1,387'-'1,396').1387 - 1396
Assigning an Object to null is a code smell. Consider refactoring.1467
Assigning an Object to null is a code smell. Consider refactoring.1470
A method should have only one exit point, and that should be the last statement in the method1588
Use explicit scoping instead of the default package private level1912 - 1915
Use explicit scoping instead of the default package private level1923 - 1926
A method should have only one exit point, and that should be the last statement in the method1975
Found 'DU'-anomaly for variable 'serializableKey' (lines '1,977'-'1,983').1977 - 1983
A method should have only one exit point, and that should be the last statement in the method1979
A method should have only one exit point, and that should be the last statement in the method2098
A method should have only one exit point, and that should be the last statement in the method2102
Found 'DD'-anomaly for variable 'size' (lines '2,117'-'2,119').2117 - 2119
Found 'DD'-anomaly for variable 'size' (lines '2,117'-'2,121').2117 - 2121
Found 'DD'-anomaly for variable 'size' (lines '2,117'-'2,123').2117 - 2123
A method should have only one exit point, and that should be the last statement in the method2187
A method should have only one exit point, and that should be the last statement in the method2190
A method should have only one exit point, and that should be the last statement in the method2271
Perhaps 'key' could be replaced by a local variable.2324
Perhaps 'future' could be replaced by a local variable.2325
Use explicit scoping instead of the default package private level2345 - 2384
Found 'DU'-anomaly for variable 'argument' (lines '2,345'-'2,384').2345 - 2384
Found 'DU'-anomaly for variable 'specificLoader' (lines '2,345'-'2,384').2345 - 2384
Found 'DU'-anomaly for variable 'argument' (lines '2,345'-'2,384').2345 - 2384
Found 'DU'-anomaly for variable 'specificLoader' (lines '2,345'-'2,384').2345 - 2384
Found 'DU'-anomaly for variable 'future' (lines '2,346'-'2,384').2346 - 2384
Found 'DU'-anomaly for variable 'future' (lines '2,346'-'2,384').2346 - 2384
Use explicit scoping instead of the default package private level2393 - 2426
Use explicit scoping instead of the default package private level2431 - 2439

net/sf/ehcache/CacheManager.java

ViolationLine
Found 'DU'-anomaly for variable 'configurationURL' (lines '216'-'237').216 - 237
Found 'DU'-anomaly for variable 'configurationFileName' (lines '216'-'237').216 - 237
Found 'DU'-anomaly for variable 'configurationInputStream' (lines '216'-'237').216 - 237
Found 'DD'-anomaly for variable 'localConfiguration' (lines '218'-'220').218 - 220
Found 'DU'-anomaly for variable 'configurationURL' (lines '251'-'278').251 - 278
Found 'DU'-anomaly for variable 'configurationInputStream' (lines '251'-'278').251 - 278
Found 'DU'-anomaly for variable 'configurationHelper' (lines '310'-'334').310 - 334
Found 'DU'-anomaly for variable 'configurationHelper' (lines '336'-'362').336 - 362
Found 'DU'-anomaly for variable 'uniqueResourceIdentifier' (lines '340'-'362').340 - 362
Found 'DU'-anomaly for variable 'configurationFileName' (lines '426'-'436').426 - 436
Found 'DU'-anomaly for variable 'configurationFileURL' (lines '458'-'469').458 - 469
Found 'DU'-anomaly for variable 'inputStream' (lines '483'-'493').483 - 493
A method should have only one exit point, and that should be the last statement in the method535
Assigning an Object to null is a code smell. Consider refactoring.561
Assigning an Object to null is a code smell. Consider refactoring.595
Found 'DD'-anomaly for variable 'cache' (lines '625'-'627').625 - 627
Assigning an Object to null is a code smell. Consider refactoring.809
Found 'UR'-anomaly for variable 'backingCache' (lines '975'-'975').975
A method should have only one exit point, and that should be the last statement in the method996

net/sf/ehcache/Ehcache.java

ViolationLine
Found 'DU'-anomaly for variable 'element' (lines '68'-'69').68 - 69
Found 'DU'-anomaly for variable 'element' (lines '90'-'92').90 - 92
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '90'-'92').90 - 92
Found 'DU'-anomaly for variable 'element' (lines '102'-'103').102 - 103
Found 'DU'-anomaly for variable 'key' (lines '116'-'116').116
Found 'DU'-anomaly for variable 'key' (lines '130'-'130').130
Found 'DU'-anomaly for variable 'key' (lines '142'-'142').142
Found 'DU'-anomaly for variable 'key' (lines '155'-'155').155
Found 'DU'-anomaly for variable 'key' (lines '224'-'224').224
Found 'DU'-anomaly for variable 'key' (lines '238'-'238').238
Found 'DU'-anomaly for variable 'key' (lines '254'-'254').254
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '254'-'254').254
Found 'DU'-anomaly for variable 'key' (lines '269'-'269').269
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '269'-'269').269
Found 'DU'-anomaly for variable 'key' (lines '280'-'280').280
Found 'DU'-anomaly for variable 'key' (lines '292'-'292').292
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '308'-'308').308
Found 'DU'-anomaly for variable 'name' (lines '390'-'390').390
Found 'DU'-anomaly for variable 'element' (lines '456'-'456').456
Found 'DU'-anomaly for variable 'key' (lines '495'-'495').495
Found 'DU'-anomaly for variable 'key' (lines '503'-'503').503
Found 'DU'-anomaly for variable 'key' (lines '510'-'510').510
Found 'DU'-anomaly for variable 'key' (lines '518'-'518').518
Avoid modifiers which are implied by the context547
Avoid modifiers which are implied by the context555
Found 'DU'-anomaly for variable 'statisticsAccuracy' (lines '555'-'555').555
Found 'DU'-anomaly for variable 'key' (lines '569'-'569').569
Found 'DU'-anomaly for variable 'value' (lines '577'-'577').577
Found 'DU'-anomaly for variable 'cacheManager' (lines '622'-'622').622
Found 'DU'-anomaly for variable 'bootstrapCacheLoader' (lines '638'-'638').638
Found 'DU'-anomaly for variable 'diskStorePath' (lines '647'-'647').647
Avoid modifiers which are implied by the context670
Avoid modifiers which are implied by the context684
Found 'DU'-anomaly for variable 'cacheExtension' (lines '684'-'684').684
Avoid modifiers which are implied by the context689
Found 'DU'-anomaly for variable 'cacheExtension' (lines '689'-'689').689
Avoid modifiers which are implied by the context694
Avoid modifiers which are implied by the context699
Found 'DU'-anomaly for variable 'cacheExceptionHandler' (lines '699'-'699').699
Avoid modifiers which are implied by the context704
Avoid modifiers which are implied by the context711
Found 'DU'-anomaly for variable 'cacheLoader' (lines '711'-'711').711
Avoid modifiers which are implied by the context718
Avoid modifiers which are implied by the context739
Found 'DU'-anomaly for variable 'key' (lines '739'-'739').739
Found 'DU'-anomaly for variable 'loaderArgument' (lines '739'-'739').739
Found 'DU'-anomaly for variable 'loader' (lines '739'-'739').739
Avoid modifiers which are implied by the context765
Found 'DU'-anomaly for variable 'keys' (lines '765'-'765').765
Found 'DU'-anomaly for variable 'loaderArgument' (lines '765'-'765').765
Avoid modifiers which are implied by the context786
Found 'DU'-anomaly for variable 'key' (lines '786'-'786').786
Avoid modifiers which are implied by the context809
Found 'DU'-anomaly for variable 'keys' (lines '809'-'809').809
Found 'DU'-anomaly for variable 'argument' (lines '809'-'809').809
Avoid modifiers which are implied by the context826
Avoid modifiers which are implied by the context834
Found 'DU'-anomaly for variable 'disabled' (lines '834'-'834').834

net/sf/ehcache/Element.java

ViolationLine
Unnecessary final modifier in final class194 - 202
Unnecessary final modifier in final class213 - 215
Unnecessary final modifier in final class223 - 232
Unnecessary final modifier in final class244 - 246
Unnecessary final modifier in final class251 - 262
A method should have only one exit point, and that should be the last statement in the method253
A method should have only one exit point, and that should be the last statement in the method258
Unnecessary final modifier in final class287 - 289
Unnecessary final modifier in final class296 - 298
Unnecessary final modifier in final class305 - 307
Unnecessary final modifier in final class312 - 314
Unnecessary final modifier in final class321 - 323
Unnecessary final modifier in final class330 - 332
Unnecessary final modifier in final class339 - 341
Unnecessary final modifier in final class346 - 348
Unnecessary final modifier in final class353 - 357
Unnecessary final modifier in final class362 - 366
Unnecessary final modifier in final class371 - 374
Unnecessary final modifier in final class380 - 392
Unnecessary final modifier in final class406 - 416
Found 'DD'-anomaly for variable 'newValue' (lines '419'-'428').419 - 428
Found 'DD'-anomaly for variable 'oos' (lines '421'-'424').421 - 424
Found 'DD'-anomaly for variable 'ois' (lines '422'-'427').422 - 427
Unnecessary final modifier in final class460 - 486
A method should have only one exit point, and that should be the last statement in the method463
Found 'DD'-anomaly for variable 'size' (lines '465'-'471').465 - 471
Found 'DD'-anomaly for variable 'oos' (lines '467'-'469').467 - 469
A method should have only one exit point, and that should be the last statement in the method472
Unnecessary final modifier in final class498 - 500
Unnecessary final modifier in final class514 - 516
A method should have only one exit point, and that should be the last statement in the method538
A method should have only one exit point, and that should be the last statement in the method556
Found 'DD'-anomaly for variable 'expirationTime' (lines '559'-'566').559 - 566
Found 'DD'-anomaly for variable 'expirationTime' (lines '559'-'568').559 - 568
Found 'DD'-anomaly for variable 'expirationTime' (lines '559'-'570').559 - 570
Found 'DU'-anomaly for variable 'ttlExpiry' (lines '560'-'573').560 - 573
Found 'DU'-anomaly for variable 'ttiExpiry' (lines '563'-'573').563 - 573

net/sf/ehcache/Statistics.java

ViolationLine
A method should have only one exit point, and that should be the last statement in the method210
A method should have only one exit point, and that should be the last statement in the method212
A method should have only one exit point, and that should be the last statement in the method224
A method should have only one exit point, and that should be the last statement in the method236

net/sf/ehcache/Status.java

ViolationLine
A method should have only one exit point, and that should be the last statement in the method152
A method should have only one exit point, and that should be the last statement in the method164

net/sf/ehcache/bootstrap/BootstrapCacheLoader.java

ViolationLine
Found 'DU'-anomaly for variable 'cache' (lines '32'-'32').32

net/sf/ehcache/bootstrap/BootstrapCacheLoaderFactory.java

ViolationLine
Each class should declare at least one constructor28 - 39
Found 'DU'-anomaly for variable 'properties' (lines '37'-'37').37

net/sf/ehcache/config/BeanHandler.java

ViolationLine
It is a good practice to call super() in a constructor49 - 51
Unnecessary final modifier in final class56 - 58
Unnecessary final modifier in final class63 - 82
Found 'DU'-anomaly for variable 'uri' (lines '63'-'82').63 - 82
Found 'DU'-anomaly for variable 'localName' (lines '63'-'82').63 - 82
Unnecessary final modifier in final class87 - 95
Found 'DU'-anomaly for variable 'uri' (lines '87'-'95').87 - 95
Found 'DU'-anomaly for variable 'localName' (lines '87'-'95').87 - 95
Found 'DU'-anomaly for variable 'qName' (lines '87'-'95').87 - 95
A method should have only one exit point, and that should be the last statement in the method108
Found 'DU'-anomaly for variable 'parent' (lines '131'-'159').131 - 159
A method should have only one exit point, and that should be the last statement in the method155
Found 'DU'-anomaly for variable 'methodName' (lines '165'-'185').165 - 185
A method should have only one exit point, and that should be the last statement in the method181
Found 'DU'-anomaly for variable 'attrValue' (lines '197'-'231').197 - 231
A method should have only one exit point, and that should be the last statement in the method208
A method should have only one exit point, and that should be the last statement in the method239
A method should have only one exit point, and that should be the last statement in the method242
A method should have only one exit point, and that should be the last statement in the method245
A method should have only one exit point, and that should be the last statement in the method248
Found 'UR'-anomaly for variable 'methodName' (lines '259'-'259').259
Found 'DU'-anomaly for variable 'methodName' (lines '263'-'287').263 - 287
Found 'UR'-anomaly for variable 'exc' (lines '292'-'292').292
Found 'DU'-anomaly for variable 'child' (lines '292'-'309').292 - 309
Found 'DU'-anomaly for variable 'exc' (lines '303'-'309').303 - 309

net/sf/ehcache/config/CacheConfiguration.java

ViolationLine
Each class should declare at least one constructor42 - 435
Each class should declare at least one constructor263 - 264
Each class should declare at least one constructor276 - 277
Each class should declare at least one constructor289 - 290
Each class should declare at least one constructor304 - 305
Each class should declare at least one constructor319 - 320

net/sf/ehcache/config/Configuration.java

ViolationLine
Avoid unnecessary constructors - the compiler will generate these for you46
Unnecessary final modifier in final class52 - 57
Unnecessary final modifier in final class64 - 69
Found 'DU'-anomaly for variable 'cacheManagerEventListenerFactoryConfiguration' (lines '64'-'69').64 - 69
Unnecessary final modifier in final class76 - 80
Found 'DU'-anomaly for variable 'factory' (lines '76'-'80').76 - 80
Unnecessary final modifier in final class87 - 91
Found 'DU'-anomaly for variable 'factory' (lines '87'-'91').87 - 91
Unnecessary final modifier in final class97 - 102
Unnecessary final modifier in final class107 - 117
Unnecessary final modifier in final class122 - 124
Unnecessary final modifier in final class129 - 131
Unnecessary final modifier in final class137 - 139
Unnecessary final modifier in final class145 - 147
Unnecessary final modifier in final class152 - 154
Unnecessary final modifier in final class159 - 161
Unnecessary final modifier in final class166 - 168
Unnecessary final modifier in final class173 - 175
Unnecessary final modifier in final class182 - 184
Unnecessary final modifier in final class189 - 191

net/sf/ehcache/config/ConfigurationFactory.java

ViolationLine
Found 'DD'-anomaly for variable 'configuration' (lines '69'-'73').69 - 73
Found 'DD'-anomaly for variable 'input' (lines '70'-'72').70 - 72
Found 'DD'-anomaly for variable 'input' (lines '96'-'98').96 - 98
Found 'DD'-anomaly for variable 'url' (lines '119'-'121').119 - 121
Avoid assignments in operands173
Found 'DU'-anomaly for variable 'c' (lines '173'-'200').173 - 200
Use explicit scoping instead of the default package private level207 - 216

net/sf/ehcache/config/ConfigurationHelper.java

ViolationLine
Found 'DU'-anomaly for variable 'registeredEventListeners' (lines '90'-'99').90 - 99
Found 'DU'-anomaly for variable 'cache' (lines '104'-'114').104 - 114
Found 'DD'-anomaly for variable 'className' (lines '124'-'127').124 - 127
Found 'DD'-anomaly for variable 'cacheEventListener' (lines '125'-'138').125 - 138
Found 'DU'-anomaly for variable 'cache' (lines '149'-'165').149 - 165
Found 'DD'-anomaly for variable 'className' (lines '151'-'154').151 - 154
Found 'DD'-anomaly for variable 'cacheExtension' (lines '152'-'162').152 - 162
Unnecessary final modifier in final class172 - 189
Found 'DD'-anomaly for variable 'className' (lines '174'-'177').174 - 177
Found 'DU'-anomaly for variable 'bootstrapCacheLoader' (lines '175'-'189').175 - 189
A method should have only one exit point, and that should be the last statement in the method186
Unnecessary final modifier in final class197 - 214
Found 'DD'-anomaly for variable 'className' (lines '199'-'202').199 - 202
Found 'DU'-anomaly for variable 'cacheLoader' (lines '200'-'214').200 - 214
A method should have only one exit point, and that should be the last statement in the method211
Unnecessary final modifier in final class222 - 239
Found 'DD'-anomaly for variable 'className' (lines '224'-'227').224 - 227
Found 'DU'-anomaly for variable 'cacheExceptionHandler' (lines '225'-'239').225 - 239
A method should have only one exit point, and that should be the last statement in the method236
Unnecessary final modifier in final class245 - 263
Found 'DD'-anomaly for variable 'className' (lines '246'-'250').246 - 250
A method should have only one exit point, and that should be the last statement in the method254
Unnecessary final modifier in final class268 - 285
Found 'DD'-anomaly for variable 'className' (lines '269'-'273').269 - 273
A method should have only one exit point, and that should be the last statement in the method277
Unnecessary final modifier in final class292 - 309
Found 'DD'-anomaly for variable 'className' (lines '293'-'297').293 - 297
A method should have only one exit point, and that should be the last statement in the method301
Unnecessary final modifier in final class315 - 322
A method should have only one exit point, and that should be the last statement in the method318
Unnecessary final modifier in final class328 - 336
Unnecessary final modifier in final class343 - 353
Unnecessary final modifier in final class359 - 370
Found 'DD'-anomaly for variable 'count' (lines '360'-'366').360 - 366
Found 'DD'-anomaly for variable 'count' (lines '366'-'366').366
Unnecessary final modifier in final class376 - 387
Found 'DD'-anomaly for variable 'count' (lines '377'-'383').377 - 383
Found 'DD'-anomaly for variable 'count' (lines '383'-'383').383
Unnecessary final modifier in final class394 - 410
Use explicit scoping instead of the default package private level394 - 410
Found 'DU'-anomaly for variable 'name' (lines '394'-'410').394 - 410
Found 'DD'-anomaly for variable 'cacheConfiguration' (lines '395'-'401').395 - 401
A method should have only one exit point, and that should be the last statement in the method406
Unnecessary final modifier in final class417 - 442
Use explicit scoping instead of the default package private level417 - 442
A method should have only one exit point, and that should be the last statement in the method450
Unnecessary final modifier in final class458 - 460

net/sf/ehcache/config/DiskStoreConfiguration.java

ViolationLine
Each class should declare at least one constructor31 - 126
Each class should declare at least one constructor44 - 50
Use explicit scoping instead of the default package private level46
Use explicit scoping instead of the default package private level47
Use explicit scoping instead of the default package private level48
Use explicit scoping instead of the default package private level49
Unnecessary final modifier in final class55 - 57
Unnecessary final modifier in final class83 - 86
Found 'DD'-anomaly for variable 'translatedPath' (lines '89'-'90').89 - 90
Found 'DU'-anomaly for variable 'replacement' (lines '111'-'124').111 - 124
A method should have only one exit point, and that should be the last statement in the method114

net/sf/ehcache/config/FactoryConfiguration.java

ViolationLine
Each class should declare at least one constructor24 - 86

net/sf/ehcache/constructs/asynchronous/AsynchronousCommandExecutor.java

ViolationLine
Use explicit scoping instead of the default package private level137 - 154
A method should have only one exit point, and that should be the last statement in the method254
Found 'DD'-anomaly for variable 'queue' (lines '280'-'283').280 - 283
Found 'DU'-anomaly for variable 'instrumentedCommand' (lines '281'-'323').281 - 323
Found 'DD'-anomaly for variable 'instrumentedCommand' (lines '281'-'296').281 - 296
Found 'DU'-anomaly for variable 'queue' (lines '283'-'323').283 - 323
Found 'DD'-anomaly for variable 'object' (lines '287'-'289').287 - 289
Found 'DU'-anomaly for variable 'object' (lines '287'-'323').287 - 323
Found 'DU'-anomaly for variable 'throwable' (lines '326'-'341').326 - 341
A method should have only one exit point, and that should be the last statement in the method330
Found 'DD'-anomaly for variable 'match' (lines '332'-'336').332 - 336
Found 'DD'-anomaly for variable 'match' (lines '336'-'336').336
Found 'DD'-anomaly for variable 'cache' (lines '345'-'347').345 - 347
Found 'DD'-anomaly for variable 'element' (lines '364'-'368').364 - 368
Found 'DD'-anomaly for variable 'messageCount' (lines '402'-'405').402 - 405
Use explicit scoping instead of the default package private level452 - 458
Use explicit scoping instead of the default package private level467 - 470
A method should have only one exit point, and that should be the last statement in the method567

net/sf/ehcache/constructs/blocking/BlockingCache.java

ViolationLine
Overriding method merely calls super249 - 251
Found 'UR'-anomaly for variable 'message' (lines '514'-'514').514
Found 'DU'-anomaly for variable 'message' (lines '522'-'541').522 - 541
A method should have only one exit point, and that should be the last statement in the method533
Found 'DU'-anomaly for variable 'cacheLoader' (lines '997'-'999').997 - 999
Found 'DU'-anomaly for variable 'key' (lines '1,014'-'1,016').1014 - 1016
Found 'DU'-anomaly for variable 'loaderArgument' (lines '1,014'-'1,016').1014 - 1016
Found 'DU'-anomaly for variable 'loader' (lines '1,014'-'1,016').1014 - 1016
Found 'DU'-anomaly for variable 'keys' (lines '1,022'-'1,024').1022 - 1024
Found 'DU'-anomaly for variable 'loaderArgument' (lines '1,022'-'1,024').1022 - 1024
Found 'DU'-anomaly for variable 'key' (lines '1,030'-'1,032').1030 - 1032
Found 'DU'-anomaly for variable 'keys' (lines '1,038'-'1,040').1038 - 1040
Found 'DU'-anomaly for variable 'argument' (lines '1,038'-'1,040').1038 - 1040

net/sf/ehcache/constructs/blocking/CacheEntryFactory.java

ViolationLine
Found 'DU'-anomaly for variable 'key' (lines '36'-'36').36

net/sf/ehcache/constructs/blocking/SelfPopulatingCache.java

ViolationLine
Found 'UR'-anomaly for variable 'message' (lines '63'-'63').63
Found 'UR'-anomaly for variable 'keyWithException' (lines '121'-'121').121
Found 'UR'-anomaly for variable 'exception' (lines '121'-'121').121
Found 'DD'-anomaly for variable 'exception' (lines '122'-'154').122 - 154
Found 'DU'-anomaly for variable 'keyWithException' (lines '123'-'161').123 - 161
Found 'DD'-anomaly for variable 'exception' (lines '154'-'154').154

net/sf/ehcache/constructs/blocking/UpdatingCacheEntryFactory.java

ViolationLine
Found 'DU'-anomaly for variable 'key' (lines '47'-'47').47
Found 'DU'-anomaly for variable 'value' (lines '47'-'47').47

net/sf/ehcache/constructs/concurrent/ConcurrencyUtil.java

ViolationLine
A method should have only one exit point, and that should be the last statement in the method70

net/sf/ehcache/constructs/concurrent/Mutex.java

ViolationLine
Each class should declare at least one constructor112 - 203
Found 'DU'-anomaly for variable 'msecs' (lines '153'-'185').153 - 185
A method should have only one exit point, and that should be the last statement in the method160
A method should have only one exit point, and that should be the last statement in the method162
Found 'DU'-anomaly for variable 'waitTime' (lines '164'-'185').164 - 185
Found 'DU'-anomaly for variable 'start' (lines '165'-'185').165 - 185
A method should have only one exit point, and that should be the last statement in the method171

net/sf/ehcache/constructs/concurrent/Sync.java

ViolationLine
Found 'DU'-anomaly for variable 'msecs' (lines '335'-'335').335

net/sf/ehcache/constructs/web/GenericResponseWrapper.java

ViolationLine
Found 'DU'-anomaly for variable 'msg' (lines '123'-'127').123 - 127
Assigning an Object to null is a code smell. Consider refactoring.231
Overriding method merely calls super238 - 240

net/sf/ehcache/constructs/web/PageInfo.java

ViolationLine
Assigning an Object to null is a code smell. Consider refactoring.81
A method should have only one exit point, and that should be the last statement in the method134
A method should have only one exit point, and that should be the last statement in the method153
A method should have only one exit point, and that should be the last statement in the method171
A method should have only one exit point, and that should be the last statement in the method204
Found 'DU'-anomaly for variable 'buffer' (lines '221'-'233').221 - 233

net/sf/ehcache/constructs/web/ResponseUtil.java

ViolationLine
Found 'DU'-anomaly for variable 'request' (lines '64'-'75').64 - 75
A method should have only one exit point, and that should be the last statement in the method71
Found 'DU'-anomaly for variable 'request' (lines '91'-'112').91 - 112
A method should have only one exit point, and that should be the last statement in the method99
A method should have only one exit point, and that should be the last statement in the method108

net/sf/ehcache/constructs/web/ShutdownListener.java

ViolationLine
Each class should declare at least one constructor48 - 77
Found 'DU'-anomaly for variable 'servletContextEvent' (lines '57'-'59').57 - 59
Found 'DU'-anomaly for variable 'servletContextEvent' (lines '68'-'76').68 - 76

net/sf/ehcache/constructs/web/filter/CachingFilter.java

ViolationLine
Each class should declare at least one constructor65 - 416
Found 'DU'-anomaly for variable 'filterConfig' (lines '84'-'97').84 - 97
Found 'DU'-anomaly for variable 'chain' (lines '162'-'202').162 - 202
Found 'DU'-anomaly for variable 'response' (lines '162'-'202').162 - 202
Found 'DD'-anomaly for variable 'pageInfo' (lines '166'-'174').166 - 174
Found 'DD'-anomaly for variable 'pageInfo' (lines '166'-'193').166 - 193
Found 'DU'-anomaly for variable 'response' (lines '267'-'274').267 - 274
Found 'DU'-anomaly for variable 'requestAcceptsGzipEncoding' (lines '294'-'306').294 - 306
Found 'DU'-anomaly for variable 'response' (lines '294'-'306').294 - 306
Found 'DU'-anomaly for variable 'header' (lines '299'-'306').299 - 306
Found 'DU'-anomaly for variable 'value' (lines '300'-'306').300 - 306
Found 'DU'-anomaly for variable 'httpRequest' (lines '347'-'347').347
Found 'DD'-anomaly for variable 'body' (lines '369'-'377').369 - 377
Found 'DD'-anomaly for variable 'body' (lines '372'-'377').372 - 377
Found 'UR'-anomaly for variable 'filterName' (lines '397'-'397').397
Found 'DU'-anomaly for variable 'threadName' (lines '399'-'415').399 - 415
Found 'DU'-anomaly for variable 'newThreadName' (lines '410'-'415').410 - 415

net/sf/ehcache/constructs/web/filter/Filter.java

ViolationLine
Each class should declare at least one constructor44 - 371
Found 'DU'-anomaly for variable 'httpResponse' (lines '89'-'100').89 - 100
Found 'UR'-anomaly for variable 'message' (lines '116'-'116').116
Found 'DU'-anomaly for variable 'message' (lines '122'-'156').122 - 156
Found 'DU'-anomaly for variable 'throwable' (lines '165'-'185').165 - 185
A method should have only one exit point, and that should be the last statement in the method167
A method should have only one exit point, and that should be the last statement in the method170
A method should have only one exit point, and that should be the last statement in the method175
A method should have only one exit point, and that should be the last statement in the method181
Found 'DU'-anomaly for variable 'level' (lines '223'-'239').223 - 239
Assigning an Object to null is a code smell. Consider refactoring.266
Found 'DU'-anomaly for variable 'value' (lines '281'-'293').281 - 293
A method should have only one exit point, and that should be the last statement in the method289
Found 'DU'-anomaly for variable 'request' (lines '300'-'314').300 - 314
Found 'DU'-anomaly for variable 'headers' (lines '302'-'314').302 - 314
Found 'DU'-anomaly for variable 'chain' (lines '328'-'329').328 - 329
Found 'DU'-anomaly for variable 'httpRequest' (lines '328'-'329').328 - 329
Found 'DU'-anomaly for variable 'httpResponse' (lines '328'-'329').328 - 329
Found 'DU'-anomaly for variable 'filterConfig' (lines '336'-'336').336

net/sf/ehcache/constructs/web/filter/FilterServletOutputStream.java

ViolationLine
It is a good practice to call super() in a constructor36 - 38

net/sf/ehcache/constructs/web/filter/GzipFilter.java

ViolationLine
Each class should declare at least one constructor41 - 154
Found 'DU'-anomaly for variable 'filterConfig' (lines '49'-'51').49 - 51

net/sf/ehcache/constructs/web/filter/PageFragmentCachingFilter.java

ViolationLine
Each class should declare at least one constructor41 - 100

net/sf/ehcache/constructs/web/filter/SimplePageCachingFilter.java

ViolationLine
Each class should declare at least one constructor72 - 132

net/sf/ehcache/constructs/web/filter/SimplePageFragmentCachingFilter.java

ViolationLine
Each class should declare at least one constructor59 - 101

net/sf/ehcache/distribution/CacheManagerPeerListenerFactory.java

ViolationLine
Each class should declare at least one constructor31 - 44
Found 'DU'-anomaly for variable 'cacheManager' (lines '40'-'40').40
Found 'DU'-anomaly for variable 'properties' (lines '40'-'40').40

net/sf/ehcache/distribution/CacheManagerPeerProvider.java

ViolationLine
Found 'DU'-anomaly for variable 'rmiUrl' (lines '35'-'35').35
Found 'DU'-anomaly for variable 'rmiUrl' (lines '42'-'42').42
Found 'DU'-anomaly for variable 'cache' (lines '47'-'47').47

net/sf/ehcache/distribution/CacheManagerPeerProviderFactory.java

ViolationLine
Each class should declare at least one constructor29 - 42
Found 'DU'-anomaly for variable 'cacheManager' (lines '38'-'38').38
Found 'DU'-anomaly for variable 'properties' (lines '38'-'38').38

net/sf/ehcache/distribution/CachePeer.java

ViolationLine
Found 'DU'-anomaly for variable 'element' (lines '53'-'53').53
Found 'DU'-anomaly for variable 'key' (lines '64'-'64').64
Found 'DU'-anomaly for variable 'eventMessages' (lines '80'-'80').80
Found 'DU'-anomaly for variable 'key' (lines '137'-'137').137
Found 'DU'-anomaly for variable 'keys' (lines '147'-'147').147

net/sf/ehcache/distribution/ConfigurableRMIClientSocketFactory.java

ViolationLine
A method should have only one exit point, and that should be the last statement in the method99

net/sf/ehcache/distribution/EventMessage.java

ViolationLine
A method should have only one exit point, and that should be the last statement in the method126

net/sf/ehcache/distribution/ManualRMICacheManagerPeerProvider.java

ViolationLine
Avoid unnecessary constructors - the compiler will generate these for you47 - 49
Unnecessary final modifier in final class54 - 56
Unnecessary final modifier in final class72 - 74
Unnecessary final modifier in final class80 - 118
Found 'DU'-anomaly for variable 'cache' (lines '80'-'118').80 - 118
Found 'DD'-anomaly for variable 'cachePeer' (lines '92'-'94').92 - 94
Unnecessary final modifier in final class129 - 131
Found 'DU'-anomaly for variable 'date' (lines '129'-'131').129 - 131

net/sf/ehcache/distribution/MulticastKeepaliveHeartbeatReceiver.java

ViolationLine
Unnecessary final modifier in final class76 - 82
Use explicit scoping instead of the default package private level76 - 82
Unnecessary final modifier in final class87 - 92
Unnecessary final modifier in final class107 - 128
Found 'DU'-anomaly for variable 'buf' (lines '108'-'128').108 - 128
A method should have only one exit point, and that should be the last statement in the method156
Found 'DU'-anomaly for variable 'rmiUrls' (lines '196'-'215').196 - 215
A method should have only one exit point, and that should be the last statement in the method200
A method should have only one exit point, and that should be the last statement in the method204
Found 'DD'-anomaly for variable 'cacheManagerUrlBase' (lines '207'-'209').207 - 209
Unnecessary final modifier in final class225 - 233

net/sf/ehcache/distribution/MulticastKeepaliveHeartbeatSender.java

ViolationLine
Unnecessary final modifier in final class89 - 92
Unnecessary final modifier in final class97 - 101
Perhaps 'compressedUrlListList' could be replaced by a local variable.109
Perhaps 'cachePeersHash' could be replaced by a local variable.110
Unnecessary final modifier in final class121 - 161
Unnecessary final modifier in final class230 - 233

net/sf/ehcache/distribution/MulticastRMICacheManagerPeerProvider.java

ViolationLine
Unnecessary final modifier in final class87 - 95
Unnecessary final modifier in final class104 - 133
Unnecessary final modifier in final class138 - 173
Found 'DU'-anomaly for variable 'cache' (lines '138'-'173').138 - 173
Unnecessary final modifier in final class179 - 182
Unnecessary final modifier in final class208 - 211
Unnecessary final modifier in final class236 - 238
Unnecessary final modifier in final class244 - 246

net/sf/ehcache/distribution/PayloadUtil.java

ViolationLine
Found 'DD'-anomaly for variable 'rmiUrl' (lines '76'-'78').76 - 78
Found 'DD'-anomaly for variable 'ungzipped' (lines '122'-'134').122 - 134
Found 'DU'-anomaly for variable 'buffer' (lines '126'-'141').126 - 141

net/sf/ehcache/distribution/RMIAsynchronousCacheReplicator.java

ViolationLine
A method should have only one exit point, and that should be the last statement in the method114
Found 'DU'-anomaly for variable 'cache' (lines '140'-'156').140 - 156
Found 'DU'-anomaly for variable 'element' (lines '140'-'156').140 - 156
A method should have only one exit point, and that should be the last statement in the method142
A method should have only one exit point, and that should be the last statement in the method146
Found 'DU'-anomaly for variable 'cache' (lines '171'-'196').171 - 196
Found 'DU'-anomaly for variable 'element' (lines '171'-'196').171 - 196
A method should have only one exit point, and that should be the last statement in the method173
A method should have only one exit point, and that should be the last statement in the method176
A method should have only one exit point, and that should be the last statement in the method184
Found 'DU'-anomaly for variable 'cache' (lines '211'-'227').211 - 227
Found 'DU'-anomaly for variable 'element' (lines '211'-'227').211 - 227
A method should have only one exit point, and that should be the last statement in the method213
A method should have only one exit point, and that should be the last statement in the method217
Found 'DU'-anomaly for variable 'cache' (lines '242'-'252').242 - 252
A method should have only one exit point, and that should be the last statement in the method244
Found 'DU'-anomaly for variable 'cacheEventMessage' (lines '263'-'272').263 - 272
Found 'DU'-anomaly for variable 'resolvedEventMessages' (lines '303'-'332').303 - 332
Unnecessary final modifier in final class367 - 369
Perhaps 'cache' could be replaced by a local variable.382

net/sf/ehcache/distribution/RMIBootstrapCacheLoader.java

ViolationLine
Unnecessary final modifier in final class104 - 113
Assigning an Object to null is a code smell. Consider refactoring.110
A method should have only one exit point, and that should be the last statement in the method134
Found 'DD'-anomaly for variable 'sampleElement' (lines '144'-'148').144 - 148
Found 'DU'-anomaly for variable 'chunkSize' (lines '159'-'177').159 - 177
Found 'DD'-anomaly for variable 'timeForClusterToForm' (lines '186'-'189').186 - 189
Found 'DD'-anomaly for variable 'cachePeers' (lines '195'-'197').195 - 197
Found 'DU'-anomaly for variable 'cache' (lines '224'-'233').224 - 233
A method should have only one exit point, and that should be the last statement in the method243

net/sf/ehcache/distribution/RMIBootstrapCacheLoaderFactory.java

ViolationLine
Each class should declare at least one constructor33 - 120
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '82'-'89').82 - 89
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '82'-'91').82 - 91
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '82'-'99').82 - 99
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '89'-'95').89 - 95
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '91'-'95').91 - 95

net/sf/ehcache/distribution/RMICacheManagerPeerListener.java

ViolationLine
Found 'DD'-anomaly for variable 'serverSocket' (lines '177'-'179').177 - 179
Found 'UR'-anomaly for variable 'url' (lines '198'-'198').198
Found 'DD'-anomaly for variable 'rmiCachePeer' (lines '199'-'206').199 - 206
Found 'DD'-anomaly for variable 'counter' (lines '202'-'208').202 - 208
Found 'DD'-anomaly for variable 'counter' (lines '208'-'208').208
Found 'DD'-anomaly for variable 'url' (lines '214'-'216').214 - 216
Found 'DU'-anomaly for variable 'url' (lines '214'-'222').214 - 222
Found 'DU'-anomaly for variable 'url' (lines '216'-'222').216 - 222
Found 'DU'-anomaly for variable 'cache' (lines '269'-'280').269 - 280
Found 'DD'-anomaly for variable 'cache' (lines '269'-'269').269
These nested if statements could be combined272 - 275
A method should hav