Apache Commons logo

Commons JCS™

PMD Results

The following document contains the results of PMD 5.1.2.

Files

org/apache/commons/jcs/JCS.java

Violation Line
Avoid unused private methods such as 'getCacheManager()'. 154

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

Violation Line
Avoid empty catch blocks 253256
Avoid empty catch blocks 261264

org/apache/commons/jcs/auxiliary/AbstractAuxiliaryCacheFactory.java

Violation Line
No need to import a type that lives in the same package 22

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

Violation Line
These nested if statements could be combined 260263
These nested if statements could be combined 723726

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

Violation Line
Avoid empty catch blocks 522525

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

Violation Line
Avoid unused private methods such as 'performGroupRemoval(GroupId)'. 494
Avoid unused private methods such as 'performPartialKeyRemoval(String)'. 533

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

Violation Line
Avoid empty catch blocks 281284

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

Violation Line
Avoid unused private methods such as 'performPartialKeyRemoval(String)'. 817
Avoid unused private methods such as 'performGroupRemoval(GroupId)'. 855

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

Violation Line
Avoid unused constructor parameters such as 'compositeCacheManager'. 122
These nested if statements could be combined 204208
These nested if statements could be combined 547551
These nested if statements could be combined 653657

org/apache/commons/jcs/auxiliary/disk/jdbc/dsfactory/SharedPoolDataSourceFactory.java

Violation Line
Avoid unused private methods such as 'initJdbc2Pool(InstanceKeyDataSource,JDBCDiskCacheAttributes)'. 143

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

Violation Line
These nested if statements could be combined 8588
These nested if statements could be combined 105108
These nested if statements could be combined 142145
These nested if statements could be combined 164167

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

Violation Line
Avoid empty catch blocks 388391

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

Violation Line
Do not hard code the IP address 51

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

Violation Line
Avoid unused method parameters such as 'cacheEventLogger'. 424
Avoid unused method parameters such as 'elementSerializer'. 425

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

Violation Line
These nested if statements could be combined 231235
These nested if statements could be combined 260263
These nested if statements could be combined 305309
These nested if statements could be combined 334338
These nested if statements could be combined 691714

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

Violation Line
Do not hard code the IP address 37

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

Violation Line
These nested if statements could be combined 190194
Avoid empty catch blocks 629632

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

Violation Line
Avoid unused constructor parameters such as 'cacheMgr'. 96

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

Violation Line
Useless parentheses. 120

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

Violation Line
This for loop could be simplified to a while loop 178228

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

Violation Line
These nested if statements could be combined 128131

org/apache/commons/jcs/auxiliary/remote/behavior/ICommonRemoteCacheAttributes.java

Violation Line
Avoid modifiers which are implied by the context 97

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

Violation Line
These nested if statements could be combined 149153

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

Violation Line
These nested if statements could be combined 365368

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

Violation Line
Useless parentheses. 411
These nested if statements could be combined 459462
Useless parentheses. 1014
Useless parentheses. 1105
Avoid unused private methods such as 'createICacheEvent(String,T,long,String)'. 1730

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

Violation Line
Avoid empty catch blocks 408411

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

Violation Line
Do not hard code the IP address 124

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

Violation Line
Avoid empty catch blocks 98101

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

Violation Line
Ensure you override both equals() and hashCode() 144

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

Violation Line
These nested if statements could be combined 158167

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

Violation Line
Avoid unused private methods such as 'addQueue(ZombieEvent)'. 86

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

Violation Line
These nested if statements could be combined 10951105
Avoid empty catch blocks 11011104
Useless parentheses. 1345
Useless parentheses. 1660

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

Violation Line
These nested if statements could be combined 244247

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

Violation Line
Avoid empty catch blocks 351354
Avoid empty catch blocks 711714

org/apache/commons/jcs/io/ObjectInputStreamClassLoaderAware.java

Violation Line
Avoid unused private fields such as 'DEFAULT'. 55
Useless parentheses. 70

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

Violation Line
Do not hard code the IP address 47

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

Violation Line
Do not hard code the IP address 60

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

Violation Line
These nested if statements could be combined 201204
These nested if statements could be combined 261267
These nested if statements could be combined 263266

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

Violation Line
Avoid empty catch blocks 138141