PMD Results

The following document contains the results of PMD 3.9.

Files

net/sf/ehcache/Cache.java

Violation Line
These nested if statements could be combined 542 - 546
These nested if statements could be combined 561 - 564
A method should have only one exit point, and that should be the last statement in the method 577
Found 'DU'-anomaly for variable 'element' (lines '659'-'702'). 659 - 702
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '659'-'702'). 659 - 702
Found 'DU'-anomaly for variable 'element' (lines '744'-'761'). 744 - 761
Found 'DU'-anomaly for variable 'loaderArgument' (lines '838'-'862'). 838 - 862
Found 'DU'-anomaly for variable 'loader' (lines '838'-'862'). 838 - 862
A method should have only one exit point, and that should be the last statement in the method 842
A method should have only one exit point, and that should be the last statement in the method 846
A method should have only one exit point, and that should be the last statement in the method 853
Found 'DU'-anomaly for variable 'key' (lines '882'-'899'). 882 - 899
A method should have only one exit point, and that should be the last statement in the method 887
Found 'UR'-anomaly for variable 'key' (lines '926'-'926'). 926
Found 'DU'-anomaly for variable 'loaderArgument' (lines '926'-'986'). 926 - 986
A method should have only one exit point, and that should be the last statement in the method 928
Found 'DD'-anomaly for variable 'map' (lines '930'-'937'). 930 - 937
Found 'DU'-anomaly for variable 'missingKeys' (lines '932'-'986'). 932 - 986
Found 'DD'-anomaly for variable 'key' (lines '935'-'940'). 935 - 940
Found 'DD'-anomaly for variable 'key' (lines '935'-'960'). 935 - 960
Found 'DU'-anomaly for variable 'key' (lines '935'-'986'). 935 - 986
Found 'DU'-anomaly for variable 'keys' (lines '1,009'-'1,021'). 1009 - 1021
Found 'DU'-anomaly for variable 'argument' (lines '1,009'-'1,021'). 1009 - 1021
A method should have only one exit point, and that should be the last statement in the method 1015
Assigning an Object to null is a code smell. Consider refactoring. 1185
Found 'DU'-anomaly for variable 'updateStatistics' (lines '1,195'-'1,221'). 1195 - 1221
A method should have only one exit point, and that should be the last statement in the method 1197
Assigning an Object to null is a code smell. Consider refactoring. 1213
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '1,362'-'1,413'). 1362 - 1413
Found 'DU'-anomaly for variable 'notifyListeners' (lines '1,362'-'1,413'). 1362 - 1413
Found 'DD'-anomaly for variable 'removed' (lines '1,366'-'1,394'). 1366 - 1394
Found 'DD'-anomaly for variable 'removed' (lines '1,366'-'1,403'). 1366 - 1403
Assigning an Object to null is a code smell. Consider refactoring. 1373
Found 'DD'-anomaly for variable 'elementFromDiskStore' (lines '1,373'-'1,377'). 1373 - 1377
These nested if statements could be combined 1375 - 1378
Found 'DD'-anomaly for variable 'removeNotified' (lines '1,383'-'1,400'). 1383 - 1400
Found 'DD'-anomaly for variable 'removeNotified' (lines '1,383'-'1,390'). 1383 - 1390
Found 'DD'-anomaly for variable 'removeNotified' (lines '1,390'-'1,400'). 1390 - 1400
Found 'DD'-anomaly for variable 'removed' (lines '1,394'-'1,403'). 1394 - 1403
Assigning an Object to null is a code smell. Consider refactoring. 1474
Assigning an Object to null is a code smell. Consider refactoring. 1477
A method should have only one exit point, and that should be the last statement in the method 1595
Use explicit scoping instead of the default package private level 1919 - 1922
Use explicit scoping instead of the default package private level 1930 - 1933
A method should have only one exit point, and that should be the last statement in the method 1982
Found 'DU'-anomaly for variable 'serializableKey' (lines '1,984'-'1,990'). 1984 - 1990
A method should have only one exit point, and that should be the last statement in the method 1986
A method should have only one exit point, and that should be the last statement in the method 2105
A method should have only one exit point, and that should be the last statement in the method 2109
Found 'DD'-anomaly for variable 'size' (lines '2,124'-'2,126'). 2124 - 2126
Found 'DD'-anomaly for variable 'size' (lines '2,124'-'2,128'). 2124 - 2128
Found 'DD'-anomaly for variable 'size' (lines '2,124'-'2,130'). 2124 - 2130
A method should have only one exit point, and that should be the last statement in the method 2194
A method should have only one exit point, and that should be the last statement in the method 2197
A method should have only one exit point, and that should be the last statement in the method 2278
Perhaps 'key' could be replaced by a local variable. 2331
Perhaps 'future' could be replaced by a local variable. 2332
Use explicit scoping instead of the default package private level 2352 - 2391
Found 'DU'-anomaly for variable 'argument' (lines '2,352'-'2,391'). 2352 - 2391
Found 'DU'-anomaly for variable 'specificLoader' (lines '2,352'-'2,391'). 2352 - 2391
Found 'DU'-anomaly for variable 'argument' (lines '2,352'-'2,391'). 2352 - 2391
Found 'DU'-anomaly for variable 'specificLoader' (lines '2,352'-'2,391'). 2352 - 2391
Found 'DU'-anomaly for variable 'future' (lines '2,353'-'2,391'). 2353 - 2391
Found 'DU'-anomaly for variable 'future' (lines '2,353'-'2,391'). 2353 - 2391
Use explicit scoping instead of the default package private level 2400 - 2433
Use explicit scoping instead of the default package private level 2439 - 2448

net/sf/ehcache/CacheManager.java

Violation Line
Found 'DU'-anomaly for variable 'configurationURL' (lines '218'-'239'). 218 - 239
Found 'DU'-anomaly for variable 'configurationFileName' (lines '218'-'239'). 218 - 239
Found 'DU'-anomaly for variable 'configurationInputStream' (lines '218'-'239'). 218 - 239
Found 'DD'-anomaly for variable 'localConfiguration' (lines '220'-'222'). 220 - 222
Found 'DU'-anomaly for variable 'configurationURL' (lines '253'-'280'). 253 - 280
Found 'DU'-anomaly for variable 'configurationInputStream' (lines '253'-'280'). 253 - 280
Found 'DU'-anomaly for variable 'configurationHelper' (lines '312'-'336'). 312 - 336
Found 'DU'-anomaly for variable 'configurationHelper' (lines '338'-'364'). 338 - 364
Found 'DU'-anomaly for variable 'uniqueResourceIdentifier' (lines '342'-'364'). 342 - 364
Found 'DU'-anomaly for variable 'configurationFileName' (lines '428'-'438'). 428 - 438
Found 'DU'-anomaly for variable 'configurationFileURL' (lines '460'-'471'). 460 - 471
Found 'DU'-anomaly for variable 'inputStream' (lines '485'-'495'). 485 - 495
A method should have only one exit point, and that should be the last statement in the method 537
Assigning an Object to null is a code smell. Consider refactoring. 563
Assigning an Object to null is a code smell. Consider refactoring. 597
Found 'DD'-anomaly for variable 'cache' (lines '627'-'629'). 627 - 629
Assigning an Object to null is a code smell. Consider refactoring. 811
Found 'UR'-anomaly for variable 'backingCache' (lines '977'-'977'). 977
A method should have only one exit point, and that should be the last statement in the method 998

net/sf/ehcache/Ehcache.java

Violation Line
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 '253'-'253'). 253
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '253'-'253'). 253
Found 'DU'-anomaly for variable 'key' (lines '268'-'268'). 268
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '268'-'268'). 268
Found 'DU'-anomaly for variable 'key' (lines '279'-'279'). 279
Found 'DU'-anomaly for variable 'key' (lines '291'-'291'). 291
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '307'-'307'). 307
Found 'DU'-anomaly for variable 'name' (lines '389'-'389'). 389
Found 'DU'-anomaly for variable 'element' (lines '455'-'455'). 455
Found 'DU'-anomaly for variable 'key' (lines '494'-'494'). 494
Found 'DU'-anomaly for variable 'key' (lines '502'-'502'). 502
Found 'DU'-anomaly for variable 'key' (lines '509'-'509'). 509
Found 'DU'-anomaly for variable 'key' (lines '517'-'517'). 517
Avoid modifiers which are implied by the context 546
Avoid modifiers which are implied by the context 554
Found 'DU'-anomaly for variable 'statisticsAccuracy' (lines '554'-'554'). 554
Found 'DU'-anomaly for variable 'key' (lines '568'-'568'). 568
Found 'DU'-anomaly for variable 'value' (lines '576'-'576'). 576
Found 'DU'-anomaly for variable 'cacheManager' (lines '621'-'621'). 621
Found 'DU'-anomaly for variable 'bootstrapCacheLoader' (lines '637'-'637'). 637
Found 'DU'-anomaly for variable 'diskStorePath' (lines '646'-'646'). 646
Avoid modifiers which are implied by the context 669
Avoid modifiers which are implied by the context 683
Found 'DU'-anomaly for variable 'cacheExtension' (lines '683'-'683'). 683
Avoid modifiers which are implied by the context 688
Found 'DU'-anomaly for variable 'cacheExtension' (lines '688'-'688'). 688
Avoid modifiers which are implied by the context 693
Avoid modifiers which are implied by the context 698
Found 'DU'-anomaly for variable 'cacheExceptionHandler' (lines '698'-'698'). 698
Avoid modifiers which are implied by the context 703
Avoid modifiers which are implied by the context 710
Found 'DU'-anomaly for variable 'cacheLoader' (lines '710'-'710'). 710
Avoid modifiers which are implied by the context 717
Avoid modifiers which are implied by the context 738
Found 'DU'-anomaly for variable 'key' (lines '738'-'738'). 738
Found 'DU'-anomaly for variable 'loaderArgument' (lines '738'-'738'). 738
Found 'DU'-anomaly for variable 'loader' (lines '738'-'738'). 738
Avoid modifiers which are implied by the context 764
Found 'DU'-anomaly for variable 'keys' (lines '764'-'764'). 764
Found 'DU'-anomaly for variable 'loaderArgument' (lines '764'-'764'). 764
Avoid modifiers which are implied by the context 785
Found 'DU'-anomaly for variable 'key' (lines '785'-'785'). 785
Avoid modifiers which are implied by the context 808
Found 'DU'-anomaly for variable 'keys' (lines '808'-'808'). 808
Found 'DU'-anomaly for variable 'argument' (lines '808'-'808'). 808
Avoid modifiers which are implied by the context 825
Avoid modifiers which are implied by the context 833
Found 'DU'-anomaly for variable 'disabled' (lines '833'-'833'). 833

net/sf/ehcache/Element.java

Violation Line
Unnecessary final modifier in final class 217 - 225
Unnecessary final modifier in final class 236 - 238
Unnecessary final modifier in final class 246 - 255
Unnecessary final modifier in final class 267 - 269
Unnecessary final modifier in final class 274 - 285
A method should have only one exit point, and that should be the last statement in the method 276
A method should have only one exit point, and that should be the last statement in the method 281
Unnecessary final modifier in final class 310 - 312
Unnecessary final modifier in final class 319 - 321
Unnecessary final modifier in final class 328 - 330
Unnecessary final modifier in final class 335 - 337
Unnecessary final modifier in final class 344 - 346
Unnecessary final modifier in final class 353 - 355
Unnecessary final modifier in final class 362 - 364
Unnecessary final modifier in final class 369 - 371
Unnecessary final modifier in final class 376 - 380
Unnecessary final modifier in final class 385 - 389
Unnecessary final modifier in final class 394 - 397
Unnecessary final modifier in final class 403 - 415
Unnecessary final modifier in final class 429 - 439
Found 'DD'-anomaly for variable 'newValue' (lines '442'-'451'). 442 - 451
Found 'DD'-anomaly for variable 'oos' (lines '444'-'447'). 444 - 447
Found 'DD'-anomaly for variable 'ois' (lines '445'-'450'). 445 - 450
Unnecessary final modifier in final class 483 - 509
A method should have only one exit point, and that should be the last statement in the method 486
Found 'DD'-anomaly for variable 'size' (lines '488'-'494'). 488 - 494
Found 'DD'-anomaly for variable 'oos' (lines '490'-'492'). 490 - 492
A method should have only one exit point, and that should be the last statement in the method 495
Unnecessary final modifier in final class 521 - 523
Unnecessary final modifier in final class 537 - 539
A method should have only one exit point, and that should be the last statement in the method 561
A method should have only one exit point, and that should be the last statement in the method 579
Found 'DD'-anomaly for variable 'expirationTime' (lines '582'-'589'). 582 - 589
Found 'DD'-anomaly for variable 'expirationTime' (lines '582'-'591'). 582 - 591
Found 'DD'-anomaly for variable 'expirationTime' (lines '582'-'593'). 582 - 593
Found 'DU'-anomaly for variable 'ttlExpiry' (lines '583'-'596'). 583 - 596
Found 'DU'-anomaly for variable 'ttiExpiry' (lines '586'-'596'). 586 - 596

net/sf/ehcache/Statistics.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 200
A method should have only one exit point, and that should be the last statement in the method 202
A method should have only one exit point, and that should be the last statement in the method 214
A method should have only one exit point, and that should be the last statement in the method 226

net/sf/ehcache/Status.java

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

net/sf/ehcache/bootstrap/BootstrapCacheLoader.java

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

net/sf/ehcache/bootstrap/BootstrapCacheLoaderFactory.java

Violation Line
Each class should declare at least one constructor 28 - 39
Found 'DU'-anomaly for variable 'properties' (lines '37'-'37'). 37

net/sf/ehcache/config/BeanHandler.java

Violation Line
It is a good practice to call super() in a constructor 52 - 54
Unnecessary final modifier in final class 59 - 61
Unnecessary final modifier in final class 66 - 85
Found 'DU'-anomaly for variable 'uri' (lines '66'-'85'). 66 - 85
Found 'DU'-anomaly for variable 'localName' (lines '66'-'85'). 66 - 85
Unnecessary final modifier in final class 90 - 98
Found 'DU'-anomaly for variable 'uri' (lines '90'-'98'). 90 - 98
Found 'DU'-anomaly for variable 'localName' (lines '90'-'98'). 90 - 98
Found 'DU'-anomaly for variable 'qName' (lines '90'-'98'). 90 - 98
A method should have only one exit point, and that should be the last statement in the method 111
Found 'DU'-anomaly for variable 'parent' (lines '134'-'162'). 134 - 162
A method should have only one exit point, and that should be the last statement in the method 158
Found 'DU'-anomaly for variable 'methodName' (lines '168'-'188'). 168 - 188
A method should have only one exit point, and that should be the last statement in the method 184
Found 'DU'-anomaly for variable 'attrValue' (lines '200'-'234'). 200 - 234
A method should have only one exit point, and that should be the last statement in the method 211
A method should have only one exit point, and that should be the last statement in the method 242
A method should have only one exit point, and that should be the last statement in the method 245
A method should have only one exit point, and that should be the last statement in the method 248
A method should have only one exit point, and that should be the last statement in the method 251
Found 'UR'-anomaly for variable 'methodName' (lines '262'-'262'). 262
Found 'DU'-anomaly for variable 'methodName' (lines '266'-'290'). 266 - 290
Found 'UR'-anomaly for variable 'exc' (lines '295'-'295'). 295
Found 'DU'-anomaly for variable 'child' (lines '295'-'312'). 295 - 312
Found 'DU'-anomaly for variable 'exc' (lines '306'-'312'). 306 - 312

net/sf/ehcache/config/CacheConfiguration.java

Violation Line
Each class should declare at least one constructor 42 - 435
Each class should declare at least one constructor 263 - 264
Each class should declare at least one constructor 276 - 277
Each class should declare at least one constructor 289 - 290
Each class should declare at least one constructor 304 - 305
Each class should declare at least one constructor 319 - 320

net/sf/ehcache/config/Configuration.java

Violation Line
Avoid unnecessary constructors - the compiler will generate these for you 46
Unnecessary final modifier in final class 52 - 57
Unnecessary final modifier in final class 64 - 69
Found 'DU'-anomaly for variable 'cacheManagerEventListenerFactoryConfiguration' (lines '64'-'69'). 64 - 69
Unnecessary final modifier in final class 76 - 80
Found 'DU'-anomaly for variable 'factory' (lines '76'-'80'). 76 - 80
Unnecessary final modifier in final class 87 - 91
Found 'DU'-anomaly for variable 'factory' (lines '87'-'91'). 87 - 91
Unnecessary final modifier in final class 97 - 102
Unnecessary final modifier in final class 107 - 117
Unnecessary final modifier in final class 122 - 124
Unnecessary final modifier in final class 129 - 131
Unnecessary final modifier in final class 137 - 139
Unnecessary final modifier in final class 145 - 147
Unnecessary final modifier in final class 152 - 154
Unnecessary final modifier in final class 159 - 161
Unnecessary final modifier in final class 166 - 168
Unnecessary final modifier in final class 173 - 175
Unnecessary final modifier in final class 182 - 184
Unnecessary final modifier in final class 189 - 191

net/sf/ehcache/config/ConfigurationFactory.java

Violation Line
Found 'DD'-anomaly for variable 'configuration' (lines '72'-'76'). 72 - 76
Found 'DD'-anomaly for variable 'input' (lines '73'-'75'). 73 - 75
Found 'DD'-anomaly for variable 'input' (lines '99'-'101'). 99 - 101
Found 'DD'-anomaly for variable 'url' (lines '122'-'124'). 122 - 124
Avoid assignments in operands 176
Found 'DU'-anomaly for variable 'c' (lines '176'-'203'). 176 - 203
Use explicit scoping instead of the default package private level 210 - 219

net/sf/ehcache/config/ConfigurationHelper.java

Violation Line
Found 'DU'-anomaly for variable 'registeredEventListeners' (lines '91'-'100'). 91 - 100
Found 'DU'-anomaly for variable 'cache' (lines '105'-'115'). 105 - 115
Found 'DD'-anomaly for variable 'className' (lines '125'-'128'). 125 - 128
Found 'DD'-anomaly for variable 'cacheEventListener' (lines '126'-'139'). 126 - 139
Found 'DU'-anomaly for variable 'cache' (lines '150'-'166'). 150 - 166
Found 'DD'-anomaly for variable 'className' (lines '152'-'155'). 152 - 155
Found 'DD'-anomaly for variable 'cacheExtension' (lines '153'-'163'). 153 - 163
Unnecessary final modifier in final class 173 - 190
Found 'DD'-anomaly for variable 'className' (lines '175'-'178'). 175 - 178
Found 'DU'-anomaly for variable 'bootstrapCacheLoader' (lines '176'-'190'). 176 - 190
A method should have only one exit point, and that should be the last statement in the method 187
Unnecessary final modifier in final class 198 - 215
Found 'DD'-anomaly for variable 'className' (lines '200'-'203'). 200 - 203
Found 'DU'-anomaly for variable 'cacheLoader' (lines '201'-'215'). 201 - 215
A method should have only one exit point, and that should be the last statement in the method 212
Unnecessary final modifier in final class 223 - 240
Found 'DD'-anomaly for variable 'className' (lines '225'-'228'). 225 - 228
Found 'DU'-anomaly for variable 'cacheExceptionHandler' (lines '226'-'240'). 226 - 240
A method should have only one exit point, and that should be the last statement in the method 237
Unnecessary final modifier in final class 246 - 264
Found 'DD'-anomaly for variable 'className' (lines '247'-'251'). 247 - 251
A method should have only one exit point, and that should be the last statement in the method 255
Unnecessary final modifier in final class 269 - 286
Found 'DD'-anomaly for variable 'className' (lines '270'-'274'). 270 - 274
A method should have only one exit point, and that should be the last statement in the method 278
Unnecessary final modifier in final class 293 - 310
Found 'DD'-anomaly for variable 'className' (lines '294'-'298'). 294 - 298
A method should have only one exit point, and that should be the last statement in the method 302
Unnecessary final modifier in final class 316 - 323
A method should have only one exit point, and that should be the last statement in the method 319
Unnecessary final modifier in final class 329 - 337
Unnecessary final modifier in final class 344 - 354
Unnecessary final modifier in final class 360 - 371
Found 'DD'-anomaly for variable 'count' (lines '361'-'367'). 361 - 367
Found 'DD'-anomaly for variable 'count' (lines '367'-'367'). 367
Unnecessary final modifier in final class 377 - 388
Found 'DD'-anomaly for variable 'count' (lines '378'-'384'). 378 - 384
Found 'DD'-anomaly for variable 'count' (lines '384'-'384'). 384
Unnecessary final modifier in final class 395 - 411
Use explicit scoping instead of the default package private level 395 - 411
Found 'DU'-anomaly for variable 'name' (lines '395'-'411'). 395 - 411
Found 'DD'-anomaly for variable 'cacheConfiguration' (lines '396'-'402'). 396 - 402
A method should have only one exit point, and that should be the last statement in the method 407
Unnecessary final modifier in final class 418 - 443
Use explicit scoping instead of the default package private level 418 - 443
A method should have only one exit point, and that should be the last statement in the method 451
Unnecessary final modifier in final class 459 - 461

net/sf/ehcache/config/DiskStoreConfiguration.java

Violation Line
Each class should declare at least one constructor 33 - 129
Each class should declare at least one constructor 47 - 53
Use explicit scoping instead of the default package private level 49
Use explicit scoping instead of the default package private level 50
Use explicit scoping instead of the default package private level 51
Use explicit scoping instead of the default package private level 52
Unnecessary final modifier in final class 58 - 60
Unnecessary final modifier in final class 86 - 89
Found 'DD'-anomaly for variable 'translatedPath' (lines '92'-'93'). 92 - 93
Found 'DU'-anomaly for variable 'replacement' (lines '114'-'127'). 114 - 127
A method should have only one exit point, and that should be the last statement in the method 117

net/sf/ehcache/config/FactoryConfiguration.java

Violation Line
Each class should declare at least one constructor 24 - 86

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

Violation Line
Use explicit scoping instead of the default package private level 140 - 157
A method should have only one exit point, and that should be the last statement in the method 257
Found 'DD'-anomaly for variable 'queue' (lines '283'-'286'). 283 - 286
Found 'DU'-anomaly for variable 'instrumentedCommand' (lines '284'-'326'). 284 - 326
Found 'DD'-anomaly for variable 'instrumentedCommand' (lines '284'-'299'). 284 - 299
Found 'DU'-anomaly for variable 'queue' (lines '286'-'326'). 286 - 326
Found 'DD'-anomaly for variable 'object' (lines '290'-'292'). 290 - 292
Found 'DU'-anomaly for variable 'object' (lines '290'-'326'). 290 - 326
Found 'DU'-anomaly for variable 'throwable' (lines '329'-'344'). 329 - 344
A method should have only one exit point, and that should be the last statement in the method 333
Found 'DD'-anomaly for variable 'match' (lines '335'-'339'). 335 - 339
Found 'DD'-anomaly for variable 'match' (lines '339'-'339'). 339
Found 'DD'-anomaly for variable 'cache' (lines '348'-'350'). 348 - 350
Found 'DD'-anomaly for variable 'element' (lines '367'-'371'). 367 - 371
Found 'DD'-anomaly for variable 'messageCount' (lines '405'-'408'). 405 - 408
Use explicit scoping instead of the default package private level 455 - 461
Use explicit scoping instead of the default package private level 470 - 473
A method should have only one exit point, and that should be the last statement in the method 570

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

Violation Line
Overriding method merely calls super 250 - 252
Found 'UR'-anomaly for variable 'message' (lines '521'-'521'). 521
Found 'DU'-anomaly for variable 'message' (lines '529'-'548'). 529 - 548
A method should have only one exit point, and that should be the last statement in the method 540
Found 'DU'-anomaly for variable 'cacheLoader' (lines '1,003'-'1,005'). 1003 - 1005
Found 'DU'-anomaly for variable 'key' (lines '1,020'-'1,022'). 1020 - 1022
Found 'DU'-anomaly for variable 'loaderArgument' (lines '1,020'-'1,022'). 1020 - 1022
Found 'DU'-anomaly for variable 'loader' (lines '1,020'-'1,022'). 1020 - 1022
Found 'DU'-anomaly for variable 'keys' (lines '1,028'-'1,030'). 1028 - 1030
Found 'DU'-anomaly for variable 'loaderArgument' (lines '1,028'-'1,030'). 1028 - 1030
Found 'DU'-anomaly for variable 'key' (lines '1,036'-'1,038'). 1036 - 1038
Found 'DU'-anomaly for variable 'keys' (lines '1,044'-'1,046'). 1044 - 1046
Found 'DU'-anomaly for variable 'argument' (lines '1,044'-'1,046'). 1044 - 1046

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

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

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

Violation Line
Found 'UR'-anomaly for variable 'message' (lines '66'-'66'). 66
Found 'UR'-anomaly for variable 'keyWithException' (lines '124'-'124'). 124
Found 'UR'-anomaly for variable 'exception' (lines '124'-'124'). 124
Found 'DD'-anomaly for variable 'exception' (lines '125'-'157'). 125 - 157
Found 'DU'-anomaly for variable 'keyWithException' (lines '126'-'164'). 126 - 164
Found 'DD'-anomaly for variable 'exception' (lines '157'-'157'). 157

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

Violation Line
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

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

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

Violation Line
Each class should declare at least one constructor 112 - 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 method 160
A method should have only one exit point, and that should be the last statement in the method 162
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 method 171

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

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

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

Violation Line
Found 'DU'-anomaly for variable 'msg' (lines '124'-'128'). 124 - 128
Assigning an Object to null is a code smell. Consider refactoring. 232
Overriding method merely calls super 239 - 241

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

Violation Line
Assigning an Object to null is a code smell. Consider refactoring. 83
A method should have only one exit point, and that should be the last statement in the method 136
A method should have only one exit point, and that should be the last statement in the method 155
A method should have only one exit point, and that should be the last statement in the method 173
A method should have only one exit point, and that should be the last statement in the method 206
Found 'DU'-anomaly for variable 'buffer' (lines '223'-'235'). 223 - 235

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

Violation Line
Found 'DU'-anomaly for variable 'request' (lines '66'-'77'). 66 - 77
A method should have only one exit point, and that should be the last statement in the method 73
Found 'DU'-anomaly for variable 'request' (lines '93'-'114'). 93 - 114
A method should have only one exit point, and that should be the last statement in the method 101
A method should have only one exit point, and that should be the last statement in the method 110

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

Violation Line
Each class should declare at least one constructor 50 - 79
Found 'DU'-anomaly for variable 'servletContextEvent' (lines '59'-'61'). 59 - 61
Found 'DU'-anomaly for variable 'servletContextEvent' (lines '70'-'78'). 70 - 78

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

Violation Line
Each class should declare at least one constructor 67 - 418
Found 'DU'-anomaly for variable 'filterConfig' (lines '86'-'99'). 86 - 99
Found 'DU'-anomaly for variable 'chain' (lines '164'-'204'). 164 - 204
Found 'DU'-anomaly for variable 'response' (lines '164'-'204'). 164 - 204
Found 'DD'-anomaly for variable 'pageInfo' (lines '168'-'176'). 168 - 176
Found 'DD'-anomaly for variable 'pageInfo' (lines '168'-'195'). 168 - 195
Found 'DU'-anomaly for variable 'response' (lines '269'-'276'). 269 - 276
Found 'DU'-anomaly for variable 'requestAcceptsGzipEncoding' (lines '296'-'308'). 296 - 308
Found 'DU'-anomaly for variable 'response' (lines '296'-'308'). 296 - 308
Found 'DU'-anomaly for variable 'header' (lines '301'-'308'). 301 - 308
Found 'DU'-anomaly for variable 'value' (lines '302'-'308'). 302 - 308
Found 'DU'-anomaly for variable 'httpRequest' (lines '349'-'349'). 349
Found 'DD'-anomaly for variable 'body' (lines '371'-'379'). 371 - 379
Found 'DD'-anomaly for variable 'body' (lines '374'-'379'). 374 - 379
Found 'UR'-anomaly for variable 'filterName' (lines '399'-'399'). 399
Found 'DU'-anomaly for variable 'threadName' (lines '401'-'417'). 401 - 417
Found 'DU'-anomaly for variable 'newThreadName' (lines '412'-'417'). 412 - 417

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

Violation Line
Each class should declare at least one constructor 41 - 372
Found 'DU'-anomaly for variable 'httpResponse' (lines '88'-'99'). 88 - 99
Found 'UR'-anomaly for variable 'message' (lines '115'-'115'). 115
Found 'DU'-anomaly for variable 'message' (lines '121'-'152'). 121 - 152
Found 'DU'-anomaly for variable 'throwable' (lines '161'-'181'). 161 - 181
A method should have only one exit point, and that should be the last statement in the method 163
A method should have only one exit point, and that should be the last statement in the method 166
A method should have only one exit point, and that should be the last statement in the method 171
A method should have only one exit point, and that should be the last statement in the method 177
Found 'DU'-anomaly for variable 'level' (lines '219'-'234'). 219 - 234
Assigning an Object to null is a code smell. Consider refactoring. 267
Found 'DU'-anomaly for variable 'value' (lines '282'-'294'). 282 - 294
A method should have only one exit point, and that should be the last statement in the method 290
Found 'DU'-anomaly for variable 'request' (lines '301'-'315'). 301 - 315
Found 'DU'-anomaly for variable 'headers' (lines '303'-'315'). 303 - 315
Found 'DU'-anomaly for variable 'chain' (lines '329'-'330'). 329 - 330
Found 'DU'-anomaly for variable 'httpRequest' (lines '329'-'330'). 329 - 330
Found 'DU'-anomaly for variable 'httpResponse' (lines '329'-'330'). 329 - 330
Found 'DU'-anomaly for variable 'filterConfig' (lines '337'-'337'). 337

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

Violation Line
It is a good practice to call super() in a constructor 36 - 38

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

Violation Line
Each class should declare at least one constructor 43 - 156
Found 'DU'-anomaly for variable 'filterConfig' (lines '51'-'53'). 51 - 53

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

Violation Line
Each class should declare at least one constructor 41 - 100

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

Violation Line
Each class should declare at least one constructor 72 - 132

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

Violation Line
Each class should declare at least one constructor 59 - 101

net/sf/ehcache/distribution/CacheManagerPeerListenerFactory.java

Violation Line
Each class should declare at least one constructor 31 - 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

Violation Line
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

Violation Line
Each class should declare at least one constructor 29 - 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

Violation Line
Found 'DU'-anomaly for variable 'element' (lines '53'-'53'). 53
Found 'DU'-anomaly for variable 'key' (lines '63'-'63'). 63
Found 'DU'-anomaly for variable 'eventMessages' (lines '79'-'79'). 79
Found 'DU'-anomaly for variable 'key' (lines '132'-'132'). 132
Found 'DU'-anomaly for variable 'keys' (lines '142'-'142'). 142

net/sf/ehcache/distribution/ConfigurableRMIClientSocketFactory.java

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

net/sf/ehcache/distribution/EventMessage.java

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

net/sf/ehcache/distribution/ManualRMICacheManagerPeerProvider.java

Violation Line
Avoid unnecessary constructors - the compiler will generate these for you 49 - 51
Unnecessary final modifier in final class 56 - 58
Unnecessary final modifier in final class 74 - 76
Unnecessary final modifier in final class 82 - 120
Found 'DU'-anomaly for variable 'cache' (lines '82'-'120'). 82 - 120
Found 'DD'-anomaly for variable 'cachePeer' (lines '94'-'96'). 94 - 96
Unnecessary final modifier in final class 131 - 133
Found 'DU'-anomaly for variable 'date' (lines '131'-'133'). 131 - 133

net/sf/ehcache/distribution/MulticastKeepaliveHeartbeatReceiver.java

Violation Line
Unnecessary final modifier in final class 79 - 85
Use explicit scoping instead of the default package private level 79 - 85
Unnecessary final modifier in final class 90 - 95
Unnecessary final modifier in final class 110 - 131
Found 'DU'-anomaly for variable 'buf' (lines '111'-'131'). 111 - 131
A method should have only one exit point, and that should be the last statement in the method 159
Found 'DU'-anomaly for variable 'rmiUrls' (lines '199'-'218'). 199 - 218
A method should have only one exit point, and that should be the last statement in the method 203
A method should have only one exit point, and that should be the last statement in the method 207
Found 'DD'-anomaly for variable 'cacheManagerUrlBase' (lines '210'-'212'). 210 - 212
Unnecessary final modifier in final class 228 - 236

net/sf/ehcache/distribution/MulticastKeepaliveHeartbeatSender.java

Violation Line
Unnecessary final modifier in final class 91 - 94
Unnecessary final modifier in final class 99 - 103
Perhaps 'compressedUrlListList' could be replaced by a local variable. 111
Perhaps 'cachePeersHash' could be replaced by a local variable. 112
Unnecessary final modifier in final class 123 - 163
Unnecessary final modifier in final class 232 - 235

net/sf/ehcache/distribution/MulticastRMICacheManagerPeerProvider.java

Violation Line
Unnecessary final modifier in final class 89 - 97
Unnecessary final modifier in final class 106 - 135
Unnecessary final modifier in final class 140 - 175
Found 'DU'-anomaly for variable 'cache' (lines '140'-'175'). 140 - 175
Unnecessary final modifier in final class 181 - 184
Unnecessary final modifier in final class 210 - 213
Unnecessary final modifier in final class 238 - 240
Unnecessary final modifier in final class 246 - 248

net/sf/ehcache/distribution/PayloadUtil.java

Violation Line
Found 'DD'-anomaly for variable 'rmiUrl' (lines '78'-'80'). 78 - 80
Found 'DD'-anomaly for variable 'ungzipped' (lines '124'-'136'). 124 - 136
Found 'DU'-anomaly for variable 'buffer' (lines '128'-'143'). 128 - 143

net/sf/ehcache/distribution/RMIAsynchronousCacheReplicator.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 116
Found 'DU'-anomaly for variable 'cache' (lines '142'-'158'). 142 - 158
Found 'DU'-anomaly for variable 'element' (lines '142'-'158'). 142 - 158
A method should have only one exit point, and that should be the last statement in the method 144
A method should have only one exit point, and that should be the last statement in the method 148
Found 'DU'-anomaly for variable 'cache' (lines '173'-'198'). 173 - 198
Found 'DU'-anomaly for variable 'element' (lines '173'-'198'). 173 - 198
A method should have only one exit point, and that should be the last statement in the method 175
A method should have only one exit point, and that should be the last statement in the method 178
A method should have only one exit point, and that should be the last statement in the method 186
Found 'DU'-anomaly for variable 'cache' (lines '213'-'229'). 213 - 229
Found 'DU'-anomaly for variable 'element' (lines '213'-'229'). 213 - 229
A method should have only one exit point, and that should be the last statement in the method 215
A method should have only one exit point, and that should be the last statement in the method 219
Found 'DU'-anomaly for variable 'cache' (lines '244'-'254'). 244 - 254
A method should have only one exit point, and that should be the last statement in the method 246
Found 'DU'-anomaly for variable 'cacheEventMessage' (lines '265'-'274'). 265 - 274
Found 'DU'-anomaly for variable 'resolvedEventMessages' (lines '305'-'334'). 305 - 334
Unnecessary final modifier in final class 369 - 371
Perhaps 'cache' could be replaced by a local variable. 384

net/sf/ehcache/distribution/RMIBootstrapCacheLoader.java

Violation Line
Unnecessary final modifier in final class 106 - 115
Assigning an Object to null is a code smell. Consider refactoring. 112
A method should have only one exit point, and that should be the last statement in the method 136
Found 'DD'-anomaly for variable 'sampleElement' (lines '146'-'150'). 146 - 150
Found 'DU'-anomaly for variable 'chunkSize' (lines '161'-'179'). 161 - 179
Found 'DD'-anomaly for variable 'timeForClusterToForm' (lines '188'-'191'). 188 - 191
Found 'DD'-anomaly for variable 'cachePeers' (lines '197'-'199'). 197 - 199
Found 'DU'-anomaly for variable 'cache' (lines '226'-'235'). 226 - 235
A method should have only one exit point, and that should be the last statement in the method 245

net/sf/ehcache/distribution/RMIBootstrapCacheLoaderFactory.java

Violation Line
Each class should declare at least one constructor 32 - 119
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '81'-'88'). 81 - 88
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '81'-'90'). 81 - 90
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '81'-'98'). 81 - 98
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '88'-'94'). 88 - 94
Found 'DD'-anomaly for variable 'maximumChunkSizeBytes' (lines '90'-'94'). 90 - 94