Apache Commons logo

Commons JCS™

PMD Results

The following document contains the results of PMD 4.2.5.

Files

org/apache/commons/jcs/admin/JCSAdminBean.java

Violation Line
Avoid empty catch blocks 249 - 252
Avoid empty catch blocks 257 - 260

org/apache/commons/jcs/auxiliary/disk/AbstractDiskCache.java

Violation Line
These nested if statements could be combined 251 - 254
These nested if statements could be combined 716 - 719

org/apache/commons/jcs/auxiliary/disk/AbstractDiskCacheAttributes.java

Violation Line
Avoid empty catch blocks 131 - 134

org/apache/commons/jcs/auxiliary/disk/block/BlockDisk.java

Violation Line
Avoid empty catch blocks 508 - 511

org/apache/commons/jcs/auxiliary/disk/block/BlockDiskKeyStore.java

Violation Line
Avoid empty catch blocks 248 - 251

org/apache/commons/jcs/auxiliary/disk/file/FileDiskCache.java

Violation Line
These nested if statements could be combined 442 - 470

org/apache/commons/jcs/auxiliary/disk/file/FileDiskCacheAttributes.java

Violation Line
Avoid empty catch blocks 74 - 77

org/apache/commons/jcs/auxiliary/disk/indexed/IndexedDiskCacheAttributes.java

Violation Line
Avoid empty catch blocks 180 - 183

org/apache/commons/jcs/auxiliary/disk/jdbc/JDBCDiskCache.java

Violation Line
These nested if statements could be combined 276 - 280
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 543
These nested if statements could be combined 598 - 602
These nested if statements could be combined 704 - 708

org/apache/commons/jcs/auxiliary/disk/jdbc/mysql/MySQLDiskCache.java

Violation Line
These nested if statements could be combined 84 - 87
These nested if statements could be combined 104 - 107
These nested if statements could be combined 141 - 144
These nested if statements could be combined 163 - 166

org/apache/commons/jcs/auxiliary/disk/jdbc/mysql/MySQLTableOptimizer.java

Violation Line
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 156

org/apache/commons/jcs/auxiliary/lateral/LateralCache.java

Violation Line
Avoid empty catch blocks 389 - 392

org/apache/commons/jcs/auxiliary/lateral/LateralCacheAttributes.java

Violation Line
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 ! 54
Avoid empty catch blocks 262 - 265

org/apache/commons/jcs/auxiliary/lateral/LateralCacheMonitor.java

Violation Line
These nested if statements could be combined 216 - 219

org/apache/commons/jcs/auxiliary/lateral/socket/tcp/LateralTCPListener.java

Violation Line
These nested if statements could be combined 222 - 226
These nested if statements could be combined 250 - 253
These nested if statements could be combined 294 - 298
These nested if statements could be combined 323 - 327
These nested if statements could be combined 668 - 691

org/apache/commons/jcs/auxiliary/lateral/socket/tcp/LateralTCPSender.java

Violation Line
These nested if statements could be combined 190 - 193

org/apache/commons/jcs/auxiliary/lateral/socket/tcp/LateralTCPService.java

Violation Line
These nested if statements could be combined 118 - 121

org/apache/commons/jcs/auxiliary/lateral/socket/tcp/TCPLateralCacheAttributes.java

Violation Line
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 ! 38
Avoid empty catch blocks 297 - 300

org/apache/commons/jcs/auxiliary/remote/AbstractRemoteAuxiliaryCache.java

Violation Line
These nested if statements could be combined 194 - 198
Avoid empty if statements 570 - 572
Avoid empty catch blocks 644 - 647

org/apache/commons/jcs/auxiliary/remote/CommonRemoteCacheAttributes.java

Violation Line
Avoid empty catch blocks 124 - 127

org/apache/commons/jcs/auxiliary/remote/RemoteCache.java

Violation Line
Avoid empty if statements 96 - 98

org/apache/commons/jcs/auxiliary/remote/RemoteCacheFailoverRunner.java

Violation Line
These nested if statements could be combined 172 - 176

org/apache/commons/jcs/auxiliary/remote/http/client/RemoteHttpCacheDispatcher.java

Violation Line
These nested if statements could be combined 147 - 151

org/apache/commons/jcs/auxiliary/remote/http/server/RemoteHttpCacheServerAttributes.java

Violation Line
Avoid empty catch blocks 52 - 55

org/apache/commons/jcs/auxiliary/remote/http/server/RemoteHttpCacheServlet.java

Violation Line
These nested if statements could be combined 207 - 210

org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheServer.java

Violation Line
Avoid unnecessary return statements 1516

org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheServerFactory.java

Violation Line
Avoid empty catch blocks 418 - 421

org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheStartupServlet.java

Violation Line
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 ! 140

org/apache/commons/jcs/engine/CacheAdaptor.java

Violation Line
Avoid empty catch blocks 96 - 99

org/apache/commons/jcs/engine/ElementAttributes.java

Violation Line
Avoid empty catch blocks 178 - 181
Avoid empty catch blocks 182 - 185

org/apache/commons/jcs/engine/control/CompositeCache.java

Violation Line
Avoid unused private fields such as 'auxHitCountByIndex'. 112
Avoid empty catch blocks 404 - 407
These nested if statements could be combined 1140 - 1150
Avoid empty catch blocks 1146 - 1149

org/apache/commons/jcs/engine/control/CompositeCacheConfigurator.java

Violation Line
These nested if statements could be combined 358 - 361

org/apache/commons/jcs/engine/control/CompositeCacheManager.java

Violation Line
Avoid empty catch blocks 324 - 327
These nested if statements could be combined 694 - 698

org/apache/commons/jcs/engine/memory/shrinking/ShrinkerThread.java

Violation Line
These nested if statements could be combined 117 - 120

org/apache/commons/jcs/utils/discovery/UDPDiscoveryAttributes.java

Violation Line
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 ! 47

org/apache/commons/jcs/utils/discovery/UDPDiscoveryMessage.java

Violation Line
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 ! 57

org/apache/commons/jcs/utils/discovery/UDPDiscoveryService.java

Violation Line
Avoid unused constructor parameters such as 'cacheEventLogger'. 81 - 114
These nested if statements could be combined 205 - 208
These nested if statements could be combined 265 - 271
These nested if statements could be combined 267 - 270

org/apache/commons/jcs/utils/net/AddressUtil.java

Violation Line
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 ! 37

org/apache/commons/jcs/utils/props/PropertyLoader.java

Violation Line
Avoid empty catch blocks 138 - 141

org/apache/commons/jcs/utils/struct/SortedPreferentialArray.java

Violation Line
These nested if statements could be combined 158 - 171
These nested if statements could be combined 250 - 253