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 |
253–256 |
Avoid empty catch blocks |
261–264 |
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 |
260–263 |
These nested if statements could be combined |
723–726 |
org/apache/commons/jcs/auxiliary/disk/block/BlockDisk.java
Violation |
Line |
Avoid empty catch blocks |
522–525 |
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 |
281–284 |
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 |
204–208 |
These nested if statements could be combined |
547–551 |
These nested if statements could be combined |
653–657 |
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 |
85–88 |
These nested if statements could be combined |
105–108 |
These nested if statements could be combined |
142–145 |
These nested if statements could be combined |
164–167 |
org/apache/commons/jcs/auxiliary/lateral/LateralCache.java
Violation |
Line |
Avoid empty catch blocks |
388–391 |
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 |
231–235 |
These nested if statements could be combined |
260–263 |
These nested if statements could be combined |
305–309 |
These nested if statements could be combined |
334–338 |
These nested if statements could be combined |
691–714 |
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 |
190–194 |
Avoid empty catch blocks |
629–632 |
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 |
178–228 |
org/apache/commons/jcs/auxiliary/remote/RemoteUtils.java
Violation |
Line |
These nested if statements could be combined |
128–131 |
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 |
149–153 |
org/apache/commons/jcs/auxiliary/remote/http/server/RemoteHttpCacheServlet.java
Violation |
Line |
These nested if statements could be combined |
365–368 |
org/apache/commons/jcs/auxiliary/remote/server/RemoteCacheServer.java
Violation |
Line |
Useless parentheses. |
411 |
These nested if statements could be combined |
459–462 |
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 |
408–411 |
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 |
98–101 |
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 |
158–167 |
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 |
1095–1105 |
Avoid empty catch blocks |
1101–1104 |
Useless parentheses. |
1345 |
Useless parentheses. |
1660 |
org/apache/commons/jcs/engine/control/CompositeCacheConfigurator.java
Violation |
Line |
These nested if statements could be combined |
244–247 |
org/apache/commons/jcs/engine/control/CompositeCacheManager.java
Violation |
Line |
Avoid empty catch blocks |
351–354 |
Avoid empty catch blocks |
711–714 |
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 |
201–204 |
These nested if statements could be combined |
261–267 |
These nested if statements could be combined |
263–266 |
org/apache/commons/jcs/utils/props/PropertyLoader.java
Violation |
Line |
Avoid empty catch blocks |
138–141 |
|