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 496 - 500
These nested if statements could be combined 514 - 517
A method should have only one exit point, and that should be the last statement in the method 526
Found 'DU'-anomaly for variable 'element' (lines '600'-'635'). 600 - 635
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '600'-'635'). 600 - 635
Found 'DU'-anomaly for variable 'element' (lines '677'-'694'). 677 - 694
Assigning an Object to null is a code smell. Consider refactoring. 909
Found 'DU'-anomaly for variable 'updateStatistics' (lines '917'-'943'). 917 - 943
A method should have only one exit point, and that should be the last statement in the method 919
Assigning an Object to null is a code smell. Consider refactoring. 935
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '1,086'-'1,137'). 1086 - 1137
Found 'DU'-anomaly for variable 'notifyListeners' (lines '1,086'-'1,137'). 1086 - 1137
Found 'DD'-anomaly for variable 'removed' (lines '1,090'-'1,118'). 1090 - 1118
Found 'DD'-anomaly for variable 'removed' (lines '1,090'-'1,127'). 1090 - 1127
Assigning an Object to null is a code smell. Consider refactoring. 1097
Found 'DD'-anomaly for variable 'elementFromDiskStore' (lines '1,097'-'1,101'). 1097 - 1101
These nested if statements could be combined 1099 - 1102
Found 'DD'-anomaly for variable 'removeNotified' (lines '1,107'-'1,124'). 1107 - 1124
Found 'DD'-anomaly for variable 'removeNotified' (lines '1,107'-'1,114'). 1107 - 1114
Found 'DD'-anomaly for variable 'removeNotified' (lines '1,114'-'1,124'). 1114 - 1124
Found 'DD'-anomaly for variable 'removed' (lines '1,118'-'1,127'). 1118 - 1127
Assigning an Object to null is a code smell. Consider refactoring. 1183
Assigning an Object to null is a code smell. Consider refactoring. 1186
A method should have only one exit point, and that should be the last statement in the method 1293
Use explicit scoping instead of the default package private level 1604 - 1607
Use explicit scoping instead of the default package private level 1615 - 1618
A method should have only one exit point, and that should be the last statement in the method 1667
Found 'DU'-anomaly for variable 'serializableKey' (lines '1,669'-'1,675'). 1669 - 1675
A method should have only one exit point, and that should be the last statement in the method 1671
A method should have only one exit point, and that should be the last statement in the method 1788
A method should have only one exit point, and that should be the last statement in the method 1792
Found 'DD'-anomaly for variable 'size' (lines '1,807'-'1,809'). 1807 - 1809
Found 'DD'-anomaly for variable 'size' (lines '1,807'-'1,811'). 1807 - 1811
Found 'DD'-anomaly for variable 'size' (lines '1,807'-'1,813'). 1807 - 1813
A method should have only one exit point, and that should be the last statement in the method 1874
A method should have only one exit point, and that should be the last statement in the method 1877

net/sf/ehcache/CacheManager.java

Violation Line
Found 'DU'-anomaly for variable 'configurationURL' (lines '208'-'229'). 208 - 229
Found 'DU'-anomaly for variable 'configurationFileName' (lines '208'-'229'). 208 - 229
Found 'DU'-anomaly for variable 'configurationInputStream' (lines '208'-'229'). 208 - 229
Found 'DD'-anomaly for variable 'localConfiguration' (lines '210'-'212'). 210 - 212
Found 'DU'-anomaly for variable 'configurationURL' (lines '243'-'270'). 243 - 270
Found 'DU'-anomaly for variable 'configurationInputStream' (lines '243'-'270'). 243 - 270
Found 'DU'-anomaly for variable 'configurationHelper' (lines '290'-'314'). 290 - 314
Found 'DU'-anomaly for variable 'configurationHelper' (lines '316'-'342'). 316 - 342
Found 'DU'-anomaly for variable 'uniqueResourceIdentifier' (lines '320'-'342'). 320 - 342
Found 'DU'-anomaly for variable 'configurationFileName' (lines '406'-'416'). 406 - 416
Found 'DU'-anomaly for variable 'configurationFileURL' (lines '438'-'449'). 438 - 449
Found 'DU'-anomaly for variable 'inputStream' (lines '463'-'473'). 463 - 473
Assigning an Object to null is a code smell. Consider refactoring. 517
Assigning an Object to null is a code smell. Consider refactoring. 552
Found 'DD'-anomaly for variable 'cache' (lines '582'-'584'). 582 - 584
Assigning an Object to null is a code smell. Consider refactoring. 731
A method should have only one exit point, and that should be the last statement in the method 892

net/sf/ehcache/Ehcache.java

Violation Line
Found 'DU'-anomaly for variable 'element' (lines '63'-'64'). 63 - 64
Found 'DU'-anomaly for variable 'element' (lines '85'-'87'). 85 - 87
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '85'-'87'). 85 - 87
Found 'DU'-anomaly for variable 'element' (lines '97'-'98'). 97 - 98
Found 'DU'-anomaly for variable 'key' (lines '111'-'111'). 111
Found 'DU'-anomaly for variable 'key' (lines '125'-'125'). 125
Found 'DU'-anomaly for variable 'key' (lines '137'-'137'). 137
Found 'DU'-anomaly for variable 'key' (lines '150'-'150'). 150
Found 'DU'-anomaly for variable 'key' (lines '220'-'220'). 220
Found 'DU'-anomaly for variable 'key' (lines '234'-'234'). 234
Found 'DU'-anomaly for variable 'key' (lines '250'-'250'). 250
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '250'-'250'). 250
Found 'DU'-anomaly for variable 'key' (lines '265'-'265'). 265
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '265'-'265'). 265
Found 'DU'-anomaly for variable 'key' (lines '276'-'276'). 276
Found 'DU'-anomaly for variable 'key' (lines '288'-'288'). 288
Found 'DU'-anomaly for variable 'doNotNotifyCacheReplicators' (lines '304'-'304'). 304
Found 'DU'-anomaly for variable 'name' (lines '386'-'386'). 386
Found 'DU'-anomaly for variable 'element' (lines '452'-'452'). 452
Found 'DU'-anomaly for variable 'key' (lines '491'-'491'). 491
Found 'DU'-anomaly for variable 'key' (lines '499'-'499'). 499
Found 'DU'-anomaly for variable 'key' (lines '506'-'506'). 506
Found 'DU'-anomaly for variable 'key' (lines '514'-'514'). 514
Avoid modifiers which are implied by the context 543
Avoid modifiers which are implied by the context 551
Found 'DU'-anomaly for variable 'statisticsAccuracy' (lines '551'-'551'). 551
Found 'DU'-anomaly for variable 'key' (lines '565'-'565'). 565
Found 'DU'-anomaly for variable 'value' (lines '573'-'573'). 573
Found 'DU'-anomaly for variable 'cacheManager' (lines '618'-'618'). 618
Found 'DU'-anomaly for variable 'bootstrapCacheLoader' (lines '633'-'633'). 633
Found 'DU'-anomaly for variable 'diskStorePath' (lines '642'-'642'). 642
Avoid modifiers which are implied by the context 665

net/sf/ehcache/Element.java

Violation Line
Unnecessary final modifier in final class 194 - 202
Unnecessary final modifier in final class 213 - 215
Unnecessary final modifier in final class 223 - 231
Unnecessary final modifier in final class 243 - 245
Unnecessary final modifier in final class 250 - 261
A method should have only one exit point, and that should be the last statement in the method 252
A method should have only one exit point, and that should be the last statement in the method 257
Unnecessary final modifier in final class 286 - 288
Unnecessary final modifier in final class 295 - 297
Unnecessary final modifier in final class 304 - 306
Unnecessary final modifier in final class 311 - 313
Unnecessary final modifier in final class 320 - 322
Unnecessary final modifier in final class 329 - 331
Unnecessary final modifier in final class 338 - 340
Unnecessary final modifier in final class 345 - 347
Unnecessary final modifier in final class 352 - 356
Unnecessary final modifier in final class 361 - 365
Unnecessary final modifier in final class 370 - 373
Unnecessary final modifier in final class 379 - 391
Unnecessary final modifier in final class 405 - 415
Found 'DD'-anomaly for variable 'newValue' (lines '418'-'427'). 418 - 427
Found 'DD'-anomaly for variable 'oos' (lines '420'-'423'). 420 - 423
Found 'DD'-anomaly for variable 'ois' (lines '421'-'426'). 421 - 426
Unnecessary final modifier in final class 459 - 485
A method should have only one exit point, and that should be the last statement in the method 462
Found 'DD'-anomaly for variable 'size' (lines '464'-'470'). 464 - 470
Found 'DD'-anomaly for variable 'oos' (lines '466'-'468'). 466 - 468
A method should have only one exit point, and that should be the last statement in the method 471
Unnecessary final modifier in final class 497 - 499
Unnecessary final modifier in final class 513 - 515
A method should have only one exit point, and that should be the last statement in the method 537
A method should have only one exit point, and that should be the last statement in the method 555
Found 'DD'-anomaly for variable 'expirationTime' (lines '558'-'565'). 558 - 565
Found 'DD'-anomaly for variable 'expirationTime' (lines '558'-'567'). 558 - 567
Found 'DD'-anomaly for variable 'expirationTime' (lines '558'-'569'). 558 - 569
Found 'DU'-anomaly for variable 'ttlExpiry' (lines '559'-'572'). 559 - 572
Found 'DU'-anomaly for variable 'ttiExpiry' (lines '562'-'572'). 562 - 572

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 204
A method should have only one exit point, and that should be the last statement in the method 206
A method should have only one exit point, and that should be the last statement in the method 218
A method should have only one exit point, and that should be the last statement in the method 230

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 152
A method should have only one exit point, and that should be the last statement in the method 164

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 49 - 51
Unnecessary final modifier in final class 56 - 58
Unnecessary final modifier in final class 63 - 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 class 87 - 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 method 108
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 method 155
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 method 181
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 method 208
A method should have only one exit point, and that should be the last statement in the method 239
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
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

Violation Line
Each class should declare at least one constructor 41 - 355
Each class should declare at least one constructor 246 - 247
Each class should declare at least one constructor 259 - 260

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 '63'-'67'). 63 - 67
Found 'DD'-anomaly for variable 'input' (lines '64'-'66'). 64 - 66
Found 'DD'-anomaly for variable 'input' (lines '90'-'92'). 90 - 92
Found 'DD'-anomaly for variable 'url' (lines '113'-'115'). 113 - 115

net/sf/ehcache/config/ConfigurationHelper.java

Violation Line
Found 'DU'-anomaly for variable 'registeredEventListeners' (lines '83'-'92'). 83 - 92
Found 'DD'-anomaly for variable 'className' (lines '102'-'105'). 102 - 105
Found 'DD'-anomaly for variable 'cacheEventListener' (lines '103'-'116'). 103 - 116
Avoid empty catch blocks 106 - 108
Unnecessary final modifier in final class 126 - 145
Found 'DD'-anomaly for variable 'className' (lines '128'-'131'). 128 - 131
Found 'DU'-anomaly for variable 'bootstrapCacheLoader' (lines '129'-'145'). 129 - 145
Avoid empty catch blocks 132 - 134
A method should have only one exit point, and that should be the last statement in the method 142
Unnecessary final modifier in final class 151 - 171
Found 'DD'-anomaly for variable 'className' (lines '152'-'156'). 152 - 156
Avoid empty catch blocks 157 - 159
A method should have only one exit point, and that should be the last statement in the method 162
Unnecessary final modifier in final class 176 - 195
Found 'DD'-anomaly for variable 'className' (lines '177'-'181'). 177 - 181
Avoid empty catch blocks 182 - 184
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 202 - 221
Found 'DD'-anomaly for variable 'className' (lines '203'-'207'). 203 - 207
Avoid empty catch blocks 208 - 210
A method should have only one exit point, and that should be the last statement in the method 213
Unnecessary final modifier in final class 227 - 234
A method should have only one exit point, and that should be the last statement in the method 230
Unnecessary final modifier in final class 240 - 248
Unnecessary final modifier in final class 255 - 265
Unnecessary final modifier in final class 271 - 282
Found 'DD'-anomaly for variable 'count' (lines '272'-'278'). 272 - 278
Found 'DD'-anomaly for variable 'count' (lines '278'-'278'). 278
Unnecessary final modifier in final class 289 - 305
Use explicit scoping instead of the default package private level 289 - 305
Found 'DU'-anomaly for variable 'name' (lines '289'-'305'). 289 - 305
Found 'DD'-anomaly for variable 'cacheConfiguration' (lines '290'-'296'). 290 - 296
A method should have only one exit point, and that should be the last statement in the method 301
Unnecessary final modifier in final class 312 - 333
Use explicit scoping instead of the default package private level 312 - 333
Unnecessary final modifier in final class 338 - 340

net/sf/ehcache/config/DiskStoreConfiguration.java

Violation Line
Each class should declare at least one constructor 30 - 98
Unnecessary final modifier in final class 38 - 40
Unnecessary final modifier in final class 54 - 74
Each class should declare at least one constructor 56 - 60
Use explicit scoping instead of the default package private level 57
Found 'DU'-anomaly for variable 'USER_HOME' (lines '57'-'74'). 57 - 74
Use explicit scoping instead of the default package private level 58
Found 'DU'-anomaly for variable 'USER_DIR' (lines '58'-'74'). 58 - 74
Use explicit scoping instead of the default package private level 59
Found 'DU'-anomaly for variable 'JAVA_IO_TMPDIR' (lines '59'-'74'). 59 - 74
Found 'DD'-anomaly for variable 'translatedPath' (lines '62'-'63'). 62 - 63
Found 'DU'-anomaly for variable 'separator' (lines '65'-'74'). 65 - 74
Found 'DU'-anomaly for variable 'replacement' (lines '83'-'96'). 83 - 96
A method should have only one exit point, and that should be the last statement in the method 86

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 137 - 154
A method should have only one exit point, and that should be the last statement in the method 254
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 method 330
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 level 452 - 458
Use explicit scoping instead of the default package private level 467 - 470
A method should have only one exit point, and that should be the last statement in the method 567

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

Violation Line
Overriding method merely calls super 244 - 246
Found 'UR'-anomaly for variable 'message' (lines '508'-'508'). 508
Found 'DU'-anomaly for variable 'message' (lines '516'-'535'). 516 - 535
A method should have only one exit point, and that should be the last statement in the method 527

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 '64'-'64'). 64
Found 'DU'-anomaly for variable 'oldThreadName' (lines '66'-'112'). 66 - 112
Found 'UR'-anomaly for variable 'exception' (lines '143'-'143'). 143
Found 'DU'-anomaly for variable 'oldThreadName' (lines '144'-'185'). 144 - 185
Found 'DD'-anomaly for variable 'exception' (lines '145'-'176'). 145 - 176
Found 'DD'-anomaly for variable 'exception' (lines '176'-'176'). 176

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/blocking/UpdatingSelfPopulatingCache.java

Violation Line
Found 'DU'-anomaly for variable 'oldThreadName' (lines '67'-'95'). 67 - 95

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 '123'-'127'). 123 - 127
Assigning an Object to null is a code smell. Consider refactoring. 231
Overriding method merely calls super 238 - 240

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

Violation Line
Assigning an Object to null is a code smell. Consider refactoring. 80
A method should have only one exit point, and that should be the last statement in the method 131
A method should have only one exit point, and that should be the last statement in the method 150
A method should have only one exit point, and that should be the last statement in the method 168
A method should have only one exit point, and that should be the last statement in the method 201
Found 'DU'-anomaly for variable 'buffer' (lines '218'-'230'). 218 - 230

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

Violation Line
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 method 71
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 method 99
A method should have only one exit point, and that should be the last statement in the method 108

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

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

Violation Line
Each class should declare at least one constructor 61 - 398
Found 'DU'-anomaly for variable 'chain' (lines '149'-'189'). 149 - 189
Found 'DU'-anomaly for variable 'response' (lines '149'-'189'). 149 - 189
Found 'DD'-anomaly for variable 'pageInfo' (lines '153'-'161'). 153 - 161
Found 'DD'-anomaly for variable 'pageInfo' (lines '153'-'180'). 153 - 180
Found 'DU'-anomaly for variable 'response' (lines '255'-'262'). 255 - 262
Found 'DU'-anomaly for variable 'requestAcceptsGzipEncoding' (lines '282'-'294'). 282 - 294
Found 'DU'-anomaly for variable 'response' (lines '282'-'294'). 282 - 294
Found 'DU'-anomaly for variable 'header' (lines '287'-'294'). 287 - 294
Found 'DU'-anomaly for variable 'value' (lines '288'-'294'). 288 - 294
Found 'DU'-anomaly for variable 'httpRequest' (lines '331'-'331'). 331
Found 'DD'-anomaly for variable 'body' (lines '353'-'361'). 353 - 361
Found 'DD'-anomaly for variable 'body' (lines '356'-'361'). 356 - 361
Found 'UR'-anomaly for variable 'filterName' (lines '379'-'379'). 379
Found 'DU'-anomaly for variable 'threadName' (lines '381'-'397'). 381 - 397
Found 'DU'-anomaly for variable 'newThreadName' (lines '392'-'397'). 392 - 397

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

Violation Line
Each class should declare at least one constructor 44 - 352
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'-'155'). 121 - 155
Found 'DU'-anomaly for variable 'throwable' (lines '164'-'184'). 164 - 184
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 169
A method should have only one exit point, and that should be the last statement in the method 174
A method should have only one exit point, and that should be the last statement in the method 180
Found 'DU'-anomaly for variable 'level' (lines '205'-'221'). 205 - 221
Assigning an Object to null is a code smell. Consider refactoring. 248
Found 'DU'-anomaly for variable 'value' (lines '263'-'275'). 263 - 275
A method should have only one exit point, and that should be the last statement in the method 271
Found 'DU'-anomaly for variable 'request' (lines '282'-'296'). 282 - 296
Found 'DU'-anomaly for variable 'headers' (lines '284'-'296'). 284 - 296
Found 'DU'-anomaly for variable 'chain' (lines '310'-'311'). 310 - 311
Found 'DU'-anomaly for variable 'httpRequest' (lines '310'-'311'). 310 - 311
Found 'DU'-anomaly for variable 'httpResponse' (lines '310'-'311'). 310 - 311

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 40 - 150

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

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

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

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

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 '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

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

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 126

net/sf/ehcache/distribution/ManualRMICacheManagerPeerProvider.java

Violation Line
Avoid unnecessary constructors - the compiler will generate these for you 47 - 49
Unnecessary final modifier in final class 54 - 56
Unnecessary final modifier in final class 72 - 74
Unnecessary final modifier in final class 80 - 118
Found 'DU'-anomaly for variable 'cache' (lines '80'-'118'). 80 - 118
Unnecessary final modifier in final class 129 - 131
Found 'DU'-anomaly for variable 'date' (lines '129'-'131'). 129 - 131

net/sf/ehcache/distribution/MulticastKeepaliveHeartbeatReceiver.java

Violation Line
Unnecessary final modifier in final class 76 - 82
Use explicit scoping instead of the default package private level 76 - 82
Unnecessary final modifier in final class 87 - 92
Unnecessary final modifier in final class 107 - 128
Found 'DU'-anomaly for variable 'buf' (lines '108'-'128'). 108 - 128
Found 'DU'-anomaly for variable 'rmiUrls' (lines '192'-'211'). 192 - 211
A method should have only one exit point, and that should be the last statement in the method 196
A method should have only one exit point, and that should be the last statement in the method 200
Found 'DD'-anomaly for variable 'cacheManagerUrlBase' (lines '203'-'205'). 203 - 205
Unnecessary final modifier in final class 221 - 229

net/sf/ehcache/distribution/MulticastKeepaliveHeartbeatSender.java

Violation Line
Unnecessary final modifier in final class 89 - 92
Unnecessary final modifier in final class 97 - 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 class 121 - 154
Unnecessary final modifier in final class 223 - 226

net/sf/ehcache/distribution/MulticastRMICacheManagerPeerProvider.java

Violation Line
Unnecessary final modifier in final class 87 - 95
Unnecessary final modifier in final class 104 - 133
Unnecessary final modifier in final class 138 - 173
Found 'DU'-anomaly for variable 'cache' (lines '138'-'173'). 138 - 173
Unnecessary final modifier in final class 179 - 182
Unnecessary final modifier in final class 208 - 211
Unnecessary final modifier in final class 236 - 238
Unnecessary final modifier in final class 244 - 246

net/sf/ehcache/distribution/PayloadUtil.java

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

Violation Line
A method should have only one exit point, and that should be the last statement in the method 114
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 method 142
A method should have only one exit point, and that should be the last statement in the method 146
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 method 173
A method should have only one exit point, and that should be the last statement in the method 176
A method should have only one exit point, and that should be the last statement in the method 184
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 method 213
A method should have only one exit point, and that should be the last statement in the method 217
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 method 244
Found 'DU'-anomaly for variable 'cacheEventMessage' (lines '263'-'272'). 263 - 272
Found 'DU'-anomaly for variable 'resolvedEventMessages' (lines '307'-'336'). 307 - 336
Unnecessary final modifier in final class 371 - 373
Perhaps 'cache' could be replaced by a local variable. 386

net/sf/ehcache/distribution/RMIBootstrapCacheLoader.java

Violation Line
Unnecessary final modifier in final class 104 - 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 method 134
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 method 243

net/sf/ehcache/distribution/RMIBootstrapCacheLoaderFactory.java

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

Violation Line
Found 'DD'-anomaly for variable 'serverSocket' (lines '170'-'172'). 170 - 172
Found 'UR'-anomaly for variable 'url' (lines '191'-'191'). 191
Found 'DD'-anomaly for variable 'rmiCachePeer' (lines '192'-'199'). 192 - 199
Found 'DD'-anomaly for variable 'counter' (lines '195'-'201'). 195 - 201
Found 'DD'-anomaly for variable 'counter' (lines '201'-'201'). 201
Found 'DD'-anomaly for variable 'url' (lines '207'-'209'). 207 - 209
Found 'DU'-anomaly for variable 'url' (lines '207'-'215'). 207 - 215
Found 'DU'-anomaly for variable 'url' (lines '209'-'215'). 209 - 215
Found 'DU'-anomaly for variable 'cache' (lines '262'-'273'). 262 - 273
Found 'DD'-anomaly for variable 'cache' (lines '262'-'262'). 262
These nested if statements could be combined 265 - 268
A method should have only one exit point, and that should be the last statement in the method 286
Found 'DD'-anomaly for variable 'counter' (lines '346'-'351'). 346 - 351
Found 'DD'-anomaly for variable 'counter' (lines '351'-'351'). 351
These nested if statements could be combined 412 - 414
Found 'UR'-anomaly for variable 'url' (lines '484'-'484'). 484
Found 'DD'-anomaly for variable 'rmiCachePeer' (lines '499'-'502'). 499 - 502
Found 'DD'-anomaly for variable 'url' (lines '500'-'503'). 500 - 503
Found 'UR'-anomaly for variable 'url' (lines '532'-'532'). 532
Found 'DU'-anomaly for variable 'url' (lines '549'-'560'). 549 - 560
Use explicit scoping instead of the default package private level 566 - 571

net/sf/ehcache/distribution/RMICacheManagerPeerListenerFactory.java

Violation Line
Each class should declare at least one constructor 38 - 90
Found 'DD'-anomaly for variable 'port' (lines '58'-'60'). 58 - 60
Found 'DD'-anomaly for variable 'port' (lines '58'-'62'). 58 - 62

net/sf/ehcache/distribution/RMICacheManagerPeerProvider.java

Violation Line
Found 'DU'-anomaly for variable 'rmiUrl' (lines '84'-'84'). 84
Use explicit scoping instead of the default package private level 93 - 95
Found 'DU'-anomaly for variable 'cache' (lines '109'-'109'). 109
Found 'DU'-anomaly for variable 'date' (lines '117'-'117'). 117

net/sf/ehcache/distribution/RMICacheManagerPeerProviderFactory.java

Violation Line
Each class should declare at least one constructor 36 - 116
Found 'DU'-anomaly for variable 'cacheManager' (lines '54'-'68'). 54 - 68
A method should have only one exit point, and that should be the last statement in the method 59
A method should have only one exit point, and that should be the last statement in the method 64
Found 'DD'-anomaly for variable 'rmiUrls' (lines '78'-'80'). 78 - 80
Found 'DD'-anomaly for variable 'rmiUrl' (lines '84'-'85'). 84 - 85

net/sf/ehcache/distribution/RMICachePeer.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 144
Use explicit scoping instead of the default package private level 239 - 241

net/sf/ehcache/distribution/RMICacheReplicatorFactory.java

Violation Line
Each class should declare at least one constructor 42 - 218
Found 'DU'-anomaly for variable 'asynchronousReplicationIntervalMillis' (lines '93'-'109'). 93 - 109
A method should have only one exit point, and that should be the last statement in the method 96 - 101
Found 'DD'-anomaly for variable 'asynchronousReplicationIntervalMillis' (lines '127'-'134'). 127 - 134
Found 'DD'-anomaly for variable 'asynchronousReplicationIntervalMillis' (lines '129'-'134'). 129 - 134

net/sf/ehcache/distribution/RMISynchronousCacheReplicator.java

Violation Line
Found 'DU'-anomaly for variable 'cache' (lines '102'-'120'). 102 - 120
Found 'DU'-anomaly for variable 'element' (lines '102'-'120'). 102 - 120
A method should have only one exit point, and that should be the last statement in the method 104
A method should have only one exit point, and that should be the last statement in the method 108
Found 'DU'-anomaly for variable 'element' (lines '129'-'139'). 129 - 139
Found 'DU'-anomaly for variable 'cache' (lines '155'-'182'). 155 - 182
Found 'DU'-anomaly for variable 'element' (lines '155'-'182'). 155 - 182
A method should have only one exit point, and that should be the last statement in the method 157
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 168
Found 'DU'-anomaly for variable 'cache' (lines '197'-'214'). 197 - 214
Found 'DU'-anomaly for variable 'element' (lines '197'-'214'). 197 - 214
A method should have only one exit point, and that should be the last statement in the method 199
A method should have only one exit point, and that should be the last statement in the method 203
Found 'DU'-anomaly for variable 'key' (lines '223'-'233'). 223 - 233
Found 'DU'-anomaly for variable 'cache' (lines '243'-'247'). 243 - 247
Found 'DU'-anomaly for variable 'element' (lines '243'-'247'). 243 - 247
Found 'DU'-anomaly for variable 'cache' (lines '262'-'266'). 262 - 266
Found 'DU'-anomaly for variable 'element' (lines '262'-'266'). 262 - 266
Found 'DU'-anomaly for variable 'cache' (lines '281'-'291'). 281 - 291
A method should have only one exit point, and that should be the last statement in the method 283
Use explicit scoping instead of the default package private level 311 - 314
A method should have only one exit point, and that should be the last statement in the method 338
This statement may have some unnecessary parentheses 340

net/sf/ehcache/event/CacheEventListener.java

Violation Line
Found 'DU'-anomaly for variable 'cache' (lines '68'-'68'). 68
Found 'DU'-anomaly for variable 'element' (lines '68'-'68'). 68
Found 'DU'-anomaly for variable 'cache' (lines '82'-'82'). 82
Found 'DU'-anomaly for variable 'element' (lines '82'-'82'). 82
Found 'DU'-anomaly for variable 'cache' (lines '98'-'98'). 98
Found 'DU'-anomaly for variable 'element' (lines '98'-'98'). 98
Found 'DU'-anomaly for variable 'cache' (lines '127'-'127'). 127
Found 'DU'-anomaly for variable 'element' (lines '127'-'127'). 127
Found 'DU'-anomaly for variable 'cache' (lines '140'-'140'). 140
Found 'DU'-anomaly for variable 'element' (lines '140'-'140'). 140
Found 'DU'-anomaly for variable 'cache' (lines '153'-'153'). 153
Avoid modifiers which are implied by the context 172

net/sf/ehcache/event/CacheEventListenerFactory.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/event/CacheManagerEventListener.java

Violation Line
Found 'DU'-anomaly for variable 'cacheName' (lines '93'-'93'). 93
Found 'DU'-anomaly for variable 'cacheName' (lines '106'-'106'). 106

net/sf/ehcache/event/CacheManagerEventListenerFactory.java

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

net/sf/ehcache/event/CacheManagerEventListenerRegistry.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 63
Found 'DU'-anomaly for variable 'cacheName' (lines '152'-'158'). 152 - 158
Found 'DU'-anomaly for variable 'cacheName' (lines '172'-'178'). 172 - 178

net/sf/ehcache/event/RegisteredEventListeners.java

Violation Line
Unnecessary final modifier in final class 66 - 76
Found 'DU'-anomaly for variable 'element' (lines '66'-'76'). 66 - 76
Found 'DU'-anomaly for variable 'remoteEvent' (lines '66'-'76'). 66 - 76
Unnecessary final modifier in final class 85 - 95
Found 'DU'-anomaly for variable 'element' (lines '85'-'95'). 85 - 95
Found 'DU'-anomaly for variable 'remoteEvent' (lines '85'-'95'). 85 - 95
Unnecessary final modifier in final class 104 - 114
Found 'DU'-anomaly for variable 'element' (lines '104'-'114'). 104 - 114
Found 'DU'-anomaly for variable 'remoteEvent' (lines '104'-'114'). 104 - 114
Unnecessary final modifier in final class 123 - 133
Found 'DU'-anomaly for variable 'element' (lines '123'-'133'). 123 - 133
Found 'DU'-anomaly for variable 'remoteEvent' (lines '123'-'133'). 123 - 133
Unnecessary final modifier in final class 140 - 142
Found 'DU'-anomaly for variable 'element' (lines '152'-'162'). 152 - 162
Found 'DU'-anomaly for variable 'remoteEvent' (lines '152'-'162'). 152 - 162
Found 'DU'-anomaly for variable 'remoteEvent' (lines '172'-'183'). 172 - 183
Unnecessary final modifier in final class 206 - 211
A method should have only one exit point, and that should be the last statement in the method 208
Unnecessary final modifier in final class 219 - 224
Found 'DU'-anomaly for variable 'cacheListener' (lines '226'-'236'). 226 - 236
These nested if statements could be combined 230 - 233
Unnecessary final modifier in final class 243 - 245
Unnecessary final modifier in final class 252 - 260
Unnecessary final modifier in final class 271 - 278

net/sf/ehcache/hibernate/EhCache.java

Violation Line
Unnecessary final modifier in final class 74 - 95
A method should have only one exit point, and that should be the last statement in the method 80
A method should have only one exit point, and that should be the last statement in the method 87
Unnecessary final modifier in final class 104 - 106
Unnecessary final modifier in final class 116 - 118
Unnecessary final modifier in final class 127 - 137
Unnecessary final modifier in final class 147 - 155
Unnecessary final modifier in final class 162 - 168
Unnecessary final modifier in final class 175 - 183
Unnecessary final modifier in final class 191 - 193
Found 'DU'-anomaly for variable 'key' (lines '191'-'193'). 191 - 193
Unnecessary final modifier in final class 200 - 202
Found 'DU'-anomaly for variable 'key' (lines '200'-'202'). 200 - 202
Unnecessary final modifier in final class 207 - 209
Unnecessary final modifier in final class 214 - 217
Unnecessary final modifier in final class 222 - 224
Unnecessary final modifier in final class 234 - 240
A method should have only one exit point, and that should be the last statement in the method 236
Unnecessary final modifier in final class 245 - 251
Unnecessary final modifier in final class 256 - 258
Unnecessary final modifier in final class 264 - 276
Unnecessary final modifier in final class 281 - 283
Unnecessary final modifier in final class 288 - 290
Use explicit scoping instead of the default package private level 288 - 290

net/sf/ehcache/hibernate/EhCacheProvider.java

Violation Line
Each class should declare at least one constructor 55 - 196
Unnecessary final modifier in final class 85 - 98
Found 'DU'-anomaly for variable 'properties' (lines '85'-'98'). 85 - 98
Unnecessary final modifier in final class 103 - 105
Unnecessary final modifier in final class 114 - 149
Found 'DU'-anomaly for variable 'properties' (lines '114'-'149'). 114 - 149
Found 'DD'-anomaly for variable 'configurationResourceName' (lines '122'-'124'). 122 - 124
Found 'DU'-anomaly for variable 'configurationResourceName' (lines '152'-'173'). 152 - 173
Found 'DD'-anomaly for variable 'url' (lines '154'-'156'). 154 - 156
These nested if statements could be combined 166 - 170
Unnecessary final modifier in final class 179 - 184
Assigning an Object to null is a code smell. Consider refactoring. 182
Unnecessary final modifier in final class 192 - 194

net/sf/ehcache/hibernate/SingletonEhCacheProvider.java

Violation Line
Each class should declare at least one constructor 51 - 184
Unnecessary final modifier in final class 87 - 101
Found 'DU'-anomaly for variable 'properties' (lines '87'-'101'). 87 - 101
Unnecessary final modifier in final class 106 - 108
Unnecessary final modifier in final class 117 - 137
Found 'DD'-anomaly for variable 'configurationResourceName' (lines '118'-'120'). 118 - 120
Found 'DU'-anomaly for variable 'configurationResourceName' (lines '139'-'160'). 139 - 160
Found 'DD'-anomaly for variable 'url' (lines '141'-'143'). 141 - 143
These nested if statements could be combined 153 - 157
Assigning an Object to null is a code smell. Consider refactoring. 171
Unnecessary final modifier in final class 180 - 182

net/sf/ehcache/jcache/CacheLoaderFactory.java

Violation Line
Each class should declare at least one constructor 33 - 45
Found 'DU'-anomaly for variable 'environment' (lines '41'-'41'). 41

net/sf/ehcache/jcache/JCache.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 162
Found 'DD'-anomaly for variable 'map' (lines '164'-'168'). 164 - 168
Perhaps 'key' could be replaced by a local variable. 218
Perhaps 'future' could be replaced by a local variable. 219
A method should have only one exit point, and that should be the last statement in the method 241
Found 'DU'-anomaly for variable 'key' (lines '301'-'318'). 301 - 318
A method should have only one exit point, and that should be the last statement in the method 306
Use explicit scoping instead of the default package private level 325 - 346
Found 'DU'-anomaly for variable 'keys' (lines '366'-'378'). 366 - 378
A method should have only one exit point, and that should be the last statement in the method 372
Use explicit scoping instead of the default package private level 385 - 407
A method should have only one exit point, and that should be the last statement in the method 421
Found 'DU'-anomaly for variable 'start' (lines '489'-'499'). 489 - 499
Found 'DU'-anomaly for variable 'end' (lines '492'-'499'). 492 - 499
A method should have only one exit point, and that should be the last statement in the method 537
A method should have only one exit point, and that should be the last statement in the method 541
A method should have only one exit point, and that should be the last statement in the method 556
Found 'DD'-anomaly for variable 'element' (lines '579'-'581'). 579 - 581
A method should have only one exit point, and that should be the last statement in the method 587
A method should have only one exit point, and that should be the last statement in the method 615
Use explicit scoping instead of the default package private level 753 - 755

net/sf/ehcache/jcache/JCacheEntry.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 52
A method should have only one exit point, and that should be the last statement in the method 70
Found 'DU'-anomaly for variable 'value' (lines '87'-'89'). 87 - 89
A method should have only one exit point, and that should be the last statement in the method 107
A method should have only one exit point, and that should be the last statement in the method 121
A method should have only one exit point, and that should be the last statement in the method 133
A method should have only one exit point, and that should be the last statement in the method 146
A method should have only one exit point, and that should be the last statement in the method 159
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 184

net/sf/ehcache/jcache/JCacheFactory.java

Violation Line
Each class should declare at least one constructor 39 - 147
Found 'DD'-anomaly for variable 'cacheLoader' (lines '80'-'121'). 80 - 121
Found 'DD'-anomaly for variable 'cache' (lines '81'-'133'). 81 - 133
Found 'DD'-anomaly for variable 'diskExpiryThreadIntervalSeconds' (lines '107'-'111'). 107 - 111
Found 'DD'-anomaly for variable 'maxElementsOnDisk' (lines '114'-'118'). 114 - 118
Assigning an Object to null is a code smell. Consider refactoring. 121
Found 'DD'-anomaly for variable 'cacheLoader' (lines '121'-'129'). 121 - 129

net/sf/ehcache/jcache/JCacheListenerAdaptor.java

Violation Line
Found 'DU'-anomaly for variable 'cache' (lines '54'-'61'). 54 - 61
Found 'DU'-anomaly for variable 'cache' (lines '73'-'77'). 73 - 77
Found 'DU'-anomaly for variable 'cache' (lines '94'-'98'). 94 - 98
Found 'DU'-anomaly for variable 'cache' (lines '126'-'130'). 126 - 130
Found 'DU'-anomaly for variable 'cache' (lines '143'-'147'). 143 - 147
Found 'DU'-anomaly for variable 'cache' (lines '164'-'166'). 164 - 166

net/sf/ehcache/management/Cache.java

Violation Line
Use explicit scoping instead of the default package private level 63 - 72
Use explicit scoping instead of the default package private level 127 - 129

net/sf/ehcache/management/CacheConfiguration.java

Violation Line
Use explicit scoping instead of the default package private level 54 - 63
Use explicit scoping instead of the default package private level 149 - 151

net/sf/ehcache/management/CacheConfigurationMBean.java

Violation Line
Avoid modifiers which are implied by the context 31
Avoid modifiers which are implied by the context 36
Avoid modifiers which are implied by the context 41
Avoid modifiers which are implied by the context 47
Avoid modifiers which are implied by the context 52
Avoid modifiers which are implied by the context 57
Avoid modifiers which are implied by the context 62
Avoid modifiers which are implied by the context 67
Avoid modifiers which are implied by the context 72
Avoid modifiers which are implied by the context 77

net/sf/ehcache/management/CacheMBean.java

Violation Line
Avoid modifiers which are implied by the context 72

net/sf/ehcache/management/CacheManager.java

Violation Line
Use explicit scoping instead of the default package private level 52 - 60
Use explicit scoping instead of the default package private level 126 - 128

net/sf/ehcache/management/CacheManagerMBean.java

Violation Line
Avoid modifiers which are implied by the context 35
Avoid modifiers which are implied by the context 45
Avoid modifiers which are implied by the context 55
Avoid modifiers which are implied by the context 62
Found 'DU'-anomaly for variable 'name' (lines '62'-'62'). 62
Avoid modifiers which are implied by the context 68
Avoid modifiers which are implied by the context 74

net/sf/ehcache/management/CacheStatistics.java

Violation Line
Perhaps 'lastUpdated' could be replaced by a local variable. 54
Use explicit scoping instead of the default package private level 70 - 79
Use explicit scoping instead of the default package private level 210 - 212

net/sf/ehcache/management/CacheStatisticsMBean.java

Violation Line
Avoid modifiers which are implied by the context 29
Avoid modifiers which are implied by the context 36
Avoid modifiers which are implied by the context 43
Avoid modifiers which are implied by the context 50
Avoid modifiers which are implied by the context 55
Avoid modifiers which are implied by the context 90
Avoid modifiers which are implied by the context 99
Avoid modifiers which are implied by the context 106
Avoid modifiers which are implied by the context 111

net/sf/ehcache/management/ManagementService.java

Violation Line
Found 'DU'-anomaly for variable 'cacheManager' (lines '140'-'145'). 140 - 145
Found 'DU'-anomaly for variable 'cache' (lines '147'-'153'). 147 - 153
Found 'DU'-anomaly for variable 'cache' (lines '155'-'161'). 155 - 161
Found 'DU'-anomaly for variable 'cache' (lines '163'-'168'). 163 - 168
Found 'DD'-anomaly for variable 'registeredObjectNames' (lines '186'-'190'). 186 - 190
Found 'DU'-anomaly for variable 'cacheName' (lines '232'-'244'). 232 - 244
Found 'DU'-anomaly for variable 'cacheName' (lines '258'-'279'). 258 - 279
Found 'DD'-anomaly for variable 'objectName' (lines '260'-'263'). 260 - 263
Found 'DD'-anomaly for variable 'objectName' (lines '260'-'267'). 260 - 267
Found 'DD'-anomaly for variable 'objectName' (lines '260'-'271'). 260 - 271

net/sf/ehcache/store/DiskStore.java

Violation Line
Found 'UR'-anomaly for variable 'diskDir' (lines '170'-'170'). 170
Assigning an Object to null is a code smell. Consider refactoring. 204
A method should have only one exit point, and that should be the last statement in the method 247
A method should have only one exit point, and that should be the last statement in the method 254
A method should have only one exit point, and that should be the last statement in the method 259
Found 'DU'-anomaly for variable 'objstr' (lines '286'-'305'). 286 - 305
Found 'DU'-anomaly for variable 'objstr' (lines '286'-'305'). 286 - 305
A method should have only one exit point, and that should be the last statement in the method 323
A method should have only one exit point, and that should be the last statement in the method 330
A method should have only one exit point, and that should be the last statement in the method 335
A method should have only one exit point, and that should be the last statement in the method 381
Found 'UR'-anomaly for variable 'message' (lines '447'-'447'). 447
Found 'DD'-anomaly for variable 'element' (lines '454'-'461'). 454 - 461
Assigning an Object to null is a code smell. Consider refactoring. 557
Assigning an Object to null is a code smell. Consider refactoring. 561
Found 'DU'-anomaly for variable 'nextExpiryTime' (lines '585'-'608'). 585 - 608
A method should have only one exit point, and that should be the last statement in the method 592
A method should have only one exit point, and that should be the last statement in the method 596
Found 'DD'-anomaly for variable 'copyOfSpool' (lines '661'-'664'). 661 - 664
Found 'DD'-anomaly for variable 'buffer' (lines '692'-'694'). 692 - 694
Assigning an Object to null is a code smell. Consider refactoring. 702
Found 'DU'-anomaly for variable 'buffer' (lines '702'-'725'). 702 - 725
Found 'DD'-anomaly for variable 'size' (lines '764'-'766'). 764 - 766
Avoid empty catch blocks 767 - 769
Found 'DD'-anomaly for variable 'objectOutputStream' (lines '811'-'814'). 811 - 814
Found 'DD'-anomaly for variable 'objectInputStream' (lines '834'-'840'). 834 - 840
Found 'DU'-anomaly for variable 'objectInputStream' (lines '834'-'876'). 834 - 876
Found 'DD'-anomaly for variable 'fin' (lines '835'-'839'). 835 - 839
Found 'DU'-anomaly for variable 'fin' (lines '835'-'876'). 835 - 876
Found 'DD'-anomaly for variable 'success' (lines '836'-'843'). 836 - 843
Found 'DU'-anomaly for variable 'now' (lines '903'-'950'). 903 - 950
Found 'DD'-anomaly for variable 'element' (lines '920'-'939'). 920 - 939
Found 'DU'-anomaly for variable 'element' (lines '920'-'950'). 920 - 950
Found 'DU'-anomaly for variable 'listeners' (lines '921'-'950'). 921 - 950
Found 'DU'-anomaly for variable 'length' (lines '965'-'974'). 965 - 974
A method should have only one exit point, and that should be the last statement in the method 970
Each class should declare at least one constructor 1009 - 1059
Perhaps 'key' could be replaced by a local variable. 1033
Perhaps 'hitcount' could be replaced by a local variable. 1043
Unnecessary final modifier in final class 1074 - 1076
A method should have only one exit point, and that should be the last statement in the method 1119
A method should have only one exit point, and that should be the last statement in the method 1157
Found 'DD'-anomaly for variable 'elements' (lines '1,188'-'1,194'). 1188 - 1194
Found 'DU'-anomaly for variable 'iterator' (lines '1,189'-'1,197'). 1189 - 1197
Found 'DD'-anomaly for variable 'elements' (lines '1,194'-'1,194'). 1194
Found 'DU'-anomaly for variable 'diskElement' (lines '1,199'-'1,213'). 1199 - 1213
Found 'DD'-anomaly for variable 'element' (lines '1,203'-'1,205'). 1203 - 1205

net/sf/ehcache/store/FifoMemoryStore.java

Violation Line
Found 'DU'-anomaly for variable 'element' (lines '55'-'59'). 55 - 59
Use explicit scoping instead of the default package private level 66 - 83
A method should have only one exit point, and that should be the last statement in the method 68
Found 'DD'-anomaly for variable 'element' (lines '71'-'79'). 71 - 79

net/sf/ehcache/store/LfuMemoryStore.java

Violation Line
Found 'DU'-anomaly for variable 'elementJustAdded' (lines '66'-'70'). 66 - 70
Use explicit scoping instead of the default package private level 96 - 100
Use explicit scoping instead of the default package private level 107 - 118
Found 'DD'-anomaly for variable 'elements' (lines '109'-'115'). 109 - 115
Found 'DU'-anomaly for variable 'iterator' (lines '110'-'118'). 110 - 118
Found 'DD'-anomaly for variable 'elements' (lines '115'-'115'). 115
A method should have only one exit point, and that should be the last statement in the method 153
A method should have only one exit point, and that should be the last statement in the method 165

net/sf/ehcache/store/LfuPolicy.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 46
Found 'DU'-anomaly for variable 'justAdded' (lines '60'-'79'). 60 - 79
A method should have only one exit point, and that should be the last statement in the method 63
Found 'DD'-anomaly for variable 'offsets' (lines '87'-'90'). 87 - 90
Found 'DU'-anomaly for variable 'maxOffset' (lines '88'-'93'). 88 - 93
Found 'DD'-anomaly for variable 'offsets' (lines '90'-'90'). 90
Avoid modifiers which are implied by the context 99 - 112

net/sf/ehcache/store/LruMemoryStore.java

Violation Line
A method should have only one exit point, and that should be the last statement in the method 73
It is a good practice to call super() in a constructor 110 - 112
Unnecessary final modifier in final class 124 - 139
Found 'DU'-anomaly for variable 'key' (lines '124'-'139'). 124 - 139
Unnecessary final modifier in final class 187 - 190
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 207

net/sf/ehcache/store/MemoryStore.java

Violation Line
Found 'DU'-anomaly for variable 'diskStore' (lines '85'-'97'). 85 - 97
Found 'DD'-anomaly for variable 'memoryStore' (lines '86'-'90'). 86 - 90
Found 'DD'-anomaly for variable 'memoryStore' (lines '86'-'92'). 86 - 92
Found 'DD'-anomaly for variable 'memoryStore' (lines '86'-'94'). 86 - 94
Found 'DU'-anomaly for variable 'element' (lines '117'-'119'). 117 - 119
A method should have only one exit point, and that should be the last statement in the method 175
Assigning an Object to null is a code smell. Consider refactoring. 209
Found 'DU'-anomaly for variable 'element' (lines '340'-'357'). 340 - 357
Found 'DD'-anomaly for variable 'spooled' (lines '341'-'350'). 341 - 350
Use explicit scoping instead of the default package private level 395 - 397

net/sf/ehcache/store/MemoryStoreEvictionPolicy.java

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

net/sf/ehcache/store/Store.java

Violation Line
Found 'DU'-anomaly for variable 'element' (lines '37'-'37'). 37
Found 'DU'-anomaly for variable 'key' (lines '42'-'42'). 42
Avoid modifiers which are implied by the context 49
Found 'DU'-anomaly for variable 'key' (lines '49'-'49'). 49
Avoid modifiers which are implied by the context 57
Found 'DU'-anomaly for variable 'key' (lines '64'-'64'). 64
Found 'DU'-anomaly for variable 'key' (lines '97'-'97'). 97
Avoid modifiers which are implied by the context 102
Avoid modifiers which are implied by the context 108
Avoid modifiers which are implied by the context 115

net/sf/ehcache/util/ClassLoaderUtil.java

Violation Line
Found 'DD'-anomaly for variable 'clazz' (lines '66'-'70'). 66 - 70

net/sf/ehcache/util/PropertyUtil.java

Violation Line
Found 'DU'-anomaly for variable 'name' (lines '47'-'60'). 47 - 60
A method should have only one exit point, and that should be the last statement in the method 49
Found 'DU'-anomaly for variable 'name' (lines '65'-'78'). 65 - 78
A method should have only one exit point, and that should be the last statement in the method 67
Found 'DU'-anomaly for variable 'propertySeparatorLocal' (lines '86'-'103'). 86 - 103
Found 'DD'-anomaly for variable 'propertySeparatorLocal' (lines '86'-'92'). 86 - 92
A method should have only one exit point, and that should be the last statement in the method 89
Found 'DD'-anomaly for variable 'propertyLines' (lines '95'-'96'). 95 - 96