Apache Commons logo

Commons JCS™

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
287 126 0 0

Files

Class Bugs
org.apache.commons.jcs3.JCS 1
org.apache.commons.jcs3.access.AbstractCacheAccess 1
org.apache.commons.jcs3.admin.JCSAdminBean 1
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitor 1
org.apache.commons.jcs3.auxiliary.disk.PurgatoryElement 3
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskCache 2
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskElementDescriptor 3
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore 2
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore$LRUMapCountLimited 1
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore$LRUMapSizeLimited 2
org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache 2
org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache$LRUMapCountLimited 1
org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache$LRUMapSizeLimited 1
org.apache.commons.jcs3.auxiliary.disk.jdbc.JDBCDiskCache 2
org.apache.commons.jcs3.auxiliary.disk.jdbc.dsfactory.JndiDataSourceFactory 1
org.apache.commons.jcs3.auxiliary.disk.jdbc.dsfactory.SharedPoolDataSourceFactory 1
org.apache.commons.jcs3.auxiliary.disk.jdbc.hsql.HSQLDiskCacheFactory 1
org.apache.commons.jcs3.auxiliary.disk.jdbc.mysql.MySQLDiskCache 1
org.apache.commons.jcs3.auxiliary.disk.jdbc.mysql.MySQLTableOptimizer 2
org.apache.commons.jcs3.auxiliary.lateral.LateralCache 5
org.apache.commons.jcs3.auxiliary.lateral.LateralCacheMonitor 1
org.apache.commons.jcs3.auxiliary.lateral.LateralCacheNoWait 1
org.apache.commons.jcs3.auxiliary.lateral.LateralCacheNoWaitFacade 3
org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener 2
org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener$ConnectionHandler 2
org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener$ListenerThread 2
org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteCacheListener 2
org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteCacheNoWaitFacade 2
org.apache.commons.jcs3.auxiliary.remote.CommonRemoteCacheAttributes 1
org.apache.commons.jcs3.auxiliary.remote.RemoteCache 1
org.apache.commons.jcs3.auxiliary.remote.RemoteCacheAttributes 3
org.apache.commons.jcs3.auxiliary.remote.RemoteCacheFailoverRunner 1
org.apache.commons.jcs3.auxiliary.remote.RemoteCacheNoWaitFacade 1
org.apache.commons.jcs3.auxiliary.remote.http.client.AbstractHttpClient 1
org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCache 3
org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCacheClient 2
org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCacheMonitor 1
org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheService 1
org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheServlet 3
org.apache.commons.jcs3.auxiliary.remote.server.RemoteCacheServerFactory 1
org.apache.commons.jcs3.auxiliary.remote.value.RemoteCacheRequest 4
org.apache.commons.jcs3.engine.CacheAdaptor 1
org.apache.commons.jcs3.engine.CacheElement 3
org.apache.commons.jcs3.engine.CacheElementSerialized 4
org.apache.commons.jcs3.engine.CacheGroup 2
org.apache.commons.jcs3.engine.CacheWatchRepairable 1
org.apache.commons.jcs3.engine.ElementAttributes 1
org.apache.commons.jcs3.engine.control.CompositeCache 9
org.apache.commons.jcs3.engine.control.CompositeCacheManager 6
org.apache.commons.jcs3.engine.memory.AbstractMemoryCache 4
org.apache.commons.jcs3.engine.memory.lru.LHMLRUMemoryCache$LHMSpooler 1
org.apache.commons.jcs3.engine.memory.shrinking.ShrinkerThread 1
org.apache.commons.jcs3.engine.stats.CacheStats 2
org.apache.commons.jcs3.engine.stats.Stats 2
org.apache.commons.jcs3.log.JulLogAdapter 1
org.apache.commons.jcs3.log.MessageFormatter 1
org.apache.commons.jcs3.utils.config.PropertySetterException 1
org.apache.commons.jcs3.utils.discovery.DiscoveredService 2
org.apache.commons.jcs3.utils.discovery.UDPCleanupRunner 1
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryMessage 2
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryReceiver 2
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryReceiver$MessageHandler 2
org.apache.commons.jcs3.utils.discovery.UDPDiscoverySenderThread 2
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryService 2
org.apache.commons.jcs3.utils.threadpool.ThreadPoolManager 1

org.apache.commons.jcs3.JCS

Bug Category Details Line Priority
org.apache.commons.jcs3.JCS.setConfigProperties(Properties) may expose internal static state by storing a mutable object into a static field org.apache.commons.jcs3.JCS.configProps MALICIOUS_CODE EI_EXPOSE_STATIC_REP2 71 Medium

org.apache.commons.jcs3.access.AbstractCacheAccess

Bug Category Details Line Priority
org.apache.commons.jcs3.access.AbstractCacheAccess.getCacheControl() may expose internal representation by returning AbstractCacheAccess.cacheControl MALICIOUS_CODE EI_EXPOSE_REP 200 Medium

org.apache.commons.jcs3.admin.JCSAdminBean

Bug Category Details Line Priority
new org.apache.commons.jcs3.admin.JCSAdminBean(CompositeCacheManager) may expose internal representation by storing an externally mutable object into JCSAdminBean.cacheHub MALICIOUS_CODE EI_EXPOSE_REP2 78 Medium

org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitor

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitor.idlePeriod should be package protected MALICIOUS_CODE MS_PKGPROTECT 43 Medium

org.apache.commons.jcs3.auxiliary.disk.PurgatoryElement

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.disk.PurgatoryElement.getCacheElement() may expose internal representation by returning PurgatoryElement.cacheElement MALICIOUS_CODE EI_EXPOSE_REP 85 Medium
new org.apache.commons.jcs3.auxiliary.disk.PurgatoryElement(ICacheElement) may expose internal representation by storing an externally mutable object into PurgatoryElement.cacheElement MALICIOUS_CODE EI_EXPOSE_REP2 55 Medium
org.apache.commons.jcs3.auxiliary.disk.PurgatoryElement overrides equals in org.apache.commons.jcs3.engine.CacheElement and may not be symmetric CORRECTNESS EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC 147-156 Medium

org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskCache

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskCache.getAuxiliaryCacheAttributes() may expose internal representation by returning BlockDiskCache.blockDiskCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP 604 Medium
new org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskCache(BlockDiskCacheAttributes, IElementSerializer) may expose internal representation by storing an externally mutable object into BlockDiskCache.blockDiskCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 109 Medium

org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskElementDescriptor

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskElementDescriptor.getBlocks() may expose internal representation by returning BlockDiskElementDescriptor.blocks MALICIOUS_CODE EI_EXPOSE_REP 100 Medium
new org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskElementDescriptor(Object, int[]) may expose internal representation by storing an externally mutable object into BlockDiskElementDescriptor.blocks MALICIOUS_CODE EI_EXPOSE_REP2 66 Medium
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskElementDescriptor.setBlocks(int[]) may expose internal representation by storing an externally mutable object into BlockDiskElementDescriptor.blocks MALICIOUS_CODE EI_EXPOSE_REP2 90 Medium

org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore(BlockDiskCacheAttributes, BlockDiskCache) may expose internal representation by storing an externally mutable object into BlockDiskKeyStore.blockDiskCache MALICIOUS_CODE EI_EXPOSE_REP2 265 Medium
new org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore(BlockDiskCacheAttributes, BlockDiskCache) may expose internal representation by storing an externally mutable object into BlockDiskKeyStore.blockDiskCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 261 Medium

org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore$LRUMapCountLimited

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore$LRUMapCountLimited(BlockDiskKeyStore, int) may expose internal representation by storing an externally mutable object into BlockDiskKeyStore$LRUMapCountLimited.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 67 Medium

org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore$LRUMapSizeLimited

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore$LRUMapSizeLimited(BlockDiskKeyStore, int) may expose internal representation by storing an externally mutable object into BlockDiskKeyStore$LRUMapSizeLimited.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 120 Medium
Potentially ambiguous invocation of either an outer or inherited method org.apache.commons.jcs3.utils.struct.AbstractLRUMap.size() in org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore$LRUMapSizeLimited.shouldRemove() STYLE IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD 202 High

org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache.getAuxiliaryCacheAttributes() may expose internal representation by returning IndexedDiskCache.cattr MALICIOUS_CODE EI_EXPOSE_REP 1405 Medium
new org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache(IndexedDiskCacheAttributes, IElementSerializer) may expose internal representation by storing an externally mutable object into IndexedDiskCache.cattr MALICIOUS_CODE EI_EXPOSE_REP2 168 Medium

org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache$LRUMapCountLimited

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache$LRUMapCountLimited(IndexedDiskCache, int) may expose internal representation by storing an externally mutable object into IndexedDiskCache$LRUMapCountLimited.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 1626 Medium

org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache$LRUMapSizeLimited

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache$LRUMapSizeLimited(IndexedDiskCache, int) may expose internal representation by storing an externally mutable object into IndexedDiskCache$LRUMapSizeLimited.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 1525 Medium

org.apache.commons.jcs3.auxiliary.disk.jdbc.JDBCDiskCache

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.disk.jdbc.JDBCDiskCache.getTableState() may expose internal representation by returning JDBCDiskCache.tableState MALICIOUS_CODE EI_EXPOSE_REP 773 Medium
org.apache.commons.jcs3.auxiliary.disk.jdbc.JDBCDiskCache.setTableState(TableState) may expose internal representation by storing an externally mutable object into JDBCDiskCache.tableState MALICIOUS_CODE EI_EXPOSE_REP2 765 Medium

org.apache.commons.jcs3.auxiliary.disk.jdbc.dsfactory.JndiDataSourceFactory

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.disk.jdbc.dsfactory.JndiDataSourceFactory.getDataSource() may expose internal representation by returning JndiDataSourceFactory.ds MALICIOUS_CODE EI_EXPOSE_REP 101 Medium

org.apache.commons.jcs3.auxiliary.disk.jdbc.dsfactory.SharedPoolDataSourceFactory

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.disk.jdbc.dsfactory.SharedPoolDataSourceFactory.getDataSource() may expose internal representation by returning SharedPoolDataSourceFactory.ds MALICIOUS_CODE EI_EXPOSE_REP 65 Medium

org.apache.commons.jcs3.auxiliary.disk.jdbc.hsql.HSQLDiskCacheFactory

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.disk.jdbc.hsql.HSQLDiskCacheFactory.setupTable(Connection, String) passes a nonconstant String to an execute or addBatch method on an SQL statement SECURITY SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE 123 Medium

org.apache.commons.jcs3.auxiliary.disk.jdbc.mysql.MySQLDiskCache

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.disk.jdbc.mysql.MySQLDiskCache(MySQLDiskCacheAttributes, DataSourceFactory, TableState) may expose internal representation by storing an externally mutable object into MySQLDiskCache.mySQLDiskCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 62 Medium

org.apache.commons.jcs3.auxiliary.disk.jdbc.mysql.MySQLTableOptimizer

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.disk.jdbc.mysql.MySQLTableOptimizer(MySQLDiskCacheAttributes, TableState, DataSource) may expose internal representation by storing an externally mutable object into MySQLTableOptimizer.dataSource MALICIOUS_CODE EI_EXPOSE_REP2 68 Medium
new org.apache.commons.jcs3.auxiliary.disk.jdbc.mysql.MySQLTableOptimizer(MySQLDiskCacheAttributes, TableState, DataSource) may expose internal representation by storing an externally mutable object into MySQLTableOptimizer.tableState MALICIOUS_CODE EI_EXPOSE_REP2 67 Medium

org.apache.commons.jcs3.auxiliary.lateral.LateralCache

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.lateral.LateralCache.getAuxiliaryCacheAttributes() may expose internal representation by returning LateralCache.lateralCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP 379 Medium
new org.apache.commons.jcs3.auxiliary.lateral.LateralCache(ILateralCacheAttributes, ICacheServiceNonLocal, LateralCacheMonitor) may expose internal representation by storing an externally mutable object into LateralCache.lateralCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 71 Medium
new org.apache.commons.jcs3.auxiliary.lateral.LateralCache(ILateralCacheAttributes, ICacheServiceNonLocal, LateralCacheMonitor) may expose internal representation by storing an externally mutable object into LateralCache.lateralCacheService MALICIOUS_CODE EI_EXPOSE_REP2 72 Medium
new org.apache.commons.jcs3.auxiliary.lateral.LateralCache(ILateralCacheAttributes, ICacheServiceNonLocal, LateralCacheMonitor) may expose internal representation by storing an externally mutable object into LateralCache.monitor MALICIOUS_CODE EI_EXPOSE_REP2 73 Medium
org.apache.commons.jcs3.auxiliary.lateral.LateralCache.fixCache(ICacheServiceNonLocal) may expose internal representation by storing an externally mutable object into LateralCache.lateralCacheService MALICIOUS_CODE EI_EXPOSE_REP2 339 Medium

org.apache.commons.jcs3.auxiliary.lateral.LateralCacheMonitor

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.lateral.LateralCacheMonitor(LateralTCPCacheFactory) may expose internal representation by storing an externally mutable object into LateralCacheMonitor.factory MALICIOUS_CODE EI_EXPOSE_REP2 73 Medium

org.apache.commons.jcs3.auxiliary.lateral.LateralCacheNoWait

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.lateral.LateralCacheNoWait(LateralCache) may expose internal representation by storing an externally mutable object into LateralCacheNoWait.cache MALICIOUS_CODE EI_EXPOSE_REP2 84 Medium

org.apache.commons.jcs3.auxiliary.lateral.LateralCacheNoWaitFacade

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.lateral.LateralCacheNoWaitFacade.getAuxiliaryCacheAttributes() may expose internal representation by returning LateralCacheNoWaitFacade.lateralCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP 437 Medium
new org.apache.commons.jcs3.auxiliary.lateral.LateralCacheNoWaitFacade(ILateralCacheListener, List, ILateralCacheAttributes) may expose internal representation by storing an externally mutable object into LateralCacheNoWaitFacade.lateralCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 117 Medium
new org.apache.commons.jcs3.auxiliary.lateral.LateralCacheNoWaitFacade(ILateralCacheListener, List, ILateralCacheAttributes) may expose internal representation by storing an externally mutable object into LateralCacheNoWaitFacade.listener MALICIOUS_CODE EI_EXPOSE_REP2 112 Medium

org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener.getTcpLateralCacheAttributes() may expose internal representation by returning LateralTCPListener.tcpLateralCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP 479 Medium
org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener.setTcpLateralCacheAttributes(ITCPLateralCacheAttributes) may expose internal representation by storing an externally mutable object into LateralTCPListener.tcpLateralCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 471 Medium

org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener$ConnectionHandler

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener$ConnectionHandler(LateralTCPListener, Socket) may expose internal representation by storing an externally mutable object into LateralTCPListener$ConnectionHandler.socket MALICIOUS_CODE EI_EXPOSE_REP2 618 Medium
new org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener$ConnectionHandler(LateralTCPListener, Socket) may expose internal representation by storing an externally mutable object into LateralTCPListener$ConnectionHandler.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 617 Medium

org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener$ListenerThread

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener$ListenerThread(LateralTCPListener, ServerSocket) may expose internal representation by storing an externally mutable object into LateralTCPListener$ListenerThread.serverSocket MALICIOUS_CODE EI_EXPOSE_REP2 501 Medium
new org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPListener$ListenerThread(LateralTCPListener, ServerSocket) may expose internal representation by storing an externally mutable object into LateralTCPListener$ListenerThread.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 500 Medium

org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteCacheListener

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteCacheListener(IRemoteCacheAttributes, ICompositeCacheManager, IElementSerializer) may expose internal representation by storing an externally mutable object into AbstractRemoteCacheListener.irca MALICIOUS_CODE EI_EXPOSE_REP2 74 Medium
Static field "localHostName" is modified by an instance level synchronized method. MT_CORRECTNESS SSD_DO_NOT_USE_INSTANCE_LOCK_ON_SHARED_STATIC_DATA 242 Medium

org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteCacheNoWaitFacade

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteCacheNoWaitFacade.getAuxiliaryCacheAttributes() may expose internal representation by returning AbstractRemoteCacheNoWaitFacade.remoteCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP 308 Medium
new org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteCacheNoWaitFacade(List, IRemoteCacheAttributes, ICacheEventLogger, IElementSerializer) may expose internal representation by storing an externally mutable object into AbstractRemoteCacheNoWaitFacade.remoteCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 69 Medium

org.apache.commons.jcs3.auxiliary.remote.CommonRemoteCacheAttributes

Bug Category Details Line Priority
Class org.apache.commons.jcs3.auxiliary.remote.CommonRemoteCacheAttributes defines non-transient non-serializable instance field location BAD_PRACTICE SE_BAD_FIELD Not available Medium

org.apache.commons.jcs3.auxiliary.remote.RemoteCache

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.remote.RemoteCache(IRemoteCacheAttributes, ICacheServiceNonLocal, IRemoteCacheListener, RemoteCacheMonitor) may expose internal representation by storing an externally mutable object into RemoteCache.monitor MALICIOUS_CODE EI_EXPOSE_REP2 72 Medium

org.apache.commons.jcs3.auxiliary.remote.RemoteCacheAttributes

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.remote.RemoteCacheAttributes.getFailovers() may expose internal representation by returning RemoteCacheAttributes.failovers MALICIOUS_CODE EI_EXPOSE_REP 102 Medium
org.apache.commons.jcs3.auxiliary.remote.RemoteCacheAttributes.setFailovers(List) may expose internal representation by storing an externally mutable object into RemoteCacheAttributes.failovers MALICIOUS_CODE EI_EXPOSE_REP2 113 Medium
Class org.apache.commons.jcs3.auxiliary.remote.RemoteCacheAttributes defines non-transient non-serializable instance field failovers BAD_PRACTICE SE_BAD_FIELD Not available Medium

org.apache.commons.jcs3.auxiliary.remote.RemoteCacheFailoverRunner

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.remote.RemoteCacheFailoverRunner(RemoteCacheNoWaitFacade, RemoteCacheFactory) may expose internal representation by storing an externally mutable object into RemoteCacheFailoverRunner.facade MALICIOUS_CODE EI_EXPOSE_REP2 60 Medium

org.apache.commons.jcs3.auxiliary.remote.RemoteCacheNoWaitFacade

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.remote.RemoteCacheNoWaitFacade(List, IRemoteCacheAttributes, ICacheEventLogger, IElementSerializer, RemoteCacheFactory) may expose internal representation by storing an externally mutable object into RemoteCacheNoWaitFacade.cacheFactory MALICIOUS_CODE EI_EXPOSE_REP2 76 Medium

org.apache.commons.jcs3.auxiliary.remote.http.client.AbstractHttpClient

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.remote.http.client.AbstractHttpClient(RemoteHttpCacheAttributes) may expose internal representation by storing an externally mutable object into AbstractHttpClient.remoteHttpCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 62 Medium

org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCache

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCache.getRemoteHttpCacheAttributes() may expose internal representation by returning RemoteHttpCache.remoteHttpCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP 111 Medium
new org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCache(RemoteHttpCacheAttributes, ICacheServiceNonLocal, IRemoteCacheListener, RemoteHttpCacheMonitor) may expose internal representation by storing an externally mutable object into RemoteHttpCache.monitor MALICIOUS_CODE EI_EXPOSE_REP2 63 Medium
new org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCache(RemoteHttpCacheAttributes, ICacheServiceNonLocal, IRemoteCacheListener, RemoteHttpCacheMonitor) may expose internal representation by storing an externally mutable object into RemoteHttpCache.remoteHttpCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 62 Medium

org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCacheClient

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCacheClient.getRemoteHttpCacheAttributes() may expose internal representation by returning RemoteHttpCacheClient.remoteHttpCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP 466 Medium
org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCacheClient.setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes) may expose internal representation by storing an externally mutable object into RemoteHttpCacheClient.remoteHttpCacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 458 Medium

org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCacheMonitor

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCacheMonitor(RemoteHttpCacheFactory) may expose internal representation by storing an externally mutable object into RemoteHttpCacheMonitor.factory MALICIOUS_CODE EI_EXPOSE_REP2 51 Medium

org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheService

Bug Category Details Line Priority
new org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheService(ICompositeCacheManager, RemoteHttpCacheServerAttributes, ICacheEventLogger) may expose internal representation by storing an externally mutable object into RemoteHttpCacheService.remoteHttpCacheServerAttributes MALICIOUS_CODE EI_EXPOSE_REP2 60 Medium

org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheServlet

Bug Category Details Line Priority
Write to static field org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheServlet.cacheMgr from instance method org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheServlet.init(ServletConfig) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 94 Medium
Write to static field org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheServlet.remoteCacheService from instance method org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheServlet.init(ServletConfig) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 101 Medium
Write to static field org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheServlet.remoteCacheService from instance method org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheServlet.setRemoteCacheService(ICacheServiceNonLocal) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 319 Medium

org.apache.commons.jcs3.auxiliary.remote.server.RemoteCacheServerFactory

Bug Category Details Line Priority
Public static org.apache.commons.jcs3.auxiliary.remote.server.RemoteCacheServerFactory.getRemoteCacheServer() may expose internal representation by returning RemoteCacheServerFactory.remoteCacheServer MALICIOUS_CODE MS_EXPOSE_REP 87 Medium

org.apache.commons.jcs3.auxiliary.remote.value.RemoteCacheRequest

Bug Category Details Line Priority
org.apache.commons.jcs3.auxiliary.remote.value.RemoteCacheRequest.getCacheElement() may expose internal representation by returning RemoteCacheRequest.cacheElement MALICIOUS_CODE EI_EXPOSE_REP 137 Medium
org.apache.commons.jcs3.auxiliary.remote.value.RemoteCacheRequest.getKeySet() may expose internal representation by returning RemoteCacheRequest.keySet MALICIOUS_CODE EI_EXPOSE_REP 169 Medium
org.apache.commons.jcs3.auxiliary.remote.value.RemoteCacheRequest.setCacheElement(ICacheElement) may expose internal representation by storing an externally mutable object into RemoteCacheRequest.cacheElement MALICIOUS_CODE EI_EXPOSE_REP2 129 Medium
org.apache.commons.jcs3.auxiliary.remote.value.RemoteCacheRequest.setKeySet(Set) may expose internal representation by storing an externally mutable object into RemoteCacheRequest.keySet MALICIOUS_CODE EI_EXPOSE_REP2 161 Medium

org.apache.commons.jcs3.engine.CacheAdaptor

Bug Category Details Line Priority
new org.apache.commons.jcs3.engine.CacheAdaptor(ICache) may expose internal representation by storing an externally mutable object into CacheAdaptor.cache MALICIOUS_CODE EI_EXPOSE_REP2 75 Medium

org.apache.commons.jcs3.engine.CacheElement

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.CacheElement.getElementAttributes() may expose internal representation by returning CacheElement.attr MALICIOUS_CODE EI_EXPOSE_REP 139 Medium
new org.apache.commons.jcs3.engine.CacheElement(String, Object, Object, IElementAttributes) may expose internal representation by storing an externally mutable object into CacheElement.attr MALICIOUS_CODE EI_EXPOSE_REP2 76 Medium
org.apache.commons.jcs3.engine.CacheElement.setElementAttributes(IElementAttributes) may expose internal representation by storing an externally mutable object into CacheElement.attr MALICIOUS_CODE EI_EXPOSE_REP2 121 Medium

org.apache.commons.jcs3.engine.CacheElementSerialized

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.CacheElementSerialized.getSerializedValue() may expose internal representation by returning CacheElementSerialized.serializedValue MALICIOUS_CODE EI_EXPOSE_REP 58 Medium
new org.apache.commons.jcs3.engine.CacheElementSerialized(String, Object, byte[], IElementAttributes) may expose internal representation by storing an externally mutable object into CacheElementSerialized.serializedValue MALICIOUS_CODE EI_EXPOSE_REP2 51 Medium
org.apache.commons.jcs3.engine.CacheElementSerialized overrides equals in CacheElement and may not be symmetric CORRECTNESS EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC 68-77 Medium
org.apache.commons.jcs3.engine.CacheElementSerialized defines equals but not hashCode BAD_PRACTICE HE_EQUALS_NO_HASHCODE 68-77 Medium

org.apache.commons.jcs3.engine.CacheGroup

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.CacheGroup.getElementAttrributes() may expose internal representation by returning CacheGroup.attr MALICIOUS_CODE EI_EXPOSE_REP 57 Medium
org.apache.commons.jcs3.engine.CacheGroup.setElementAttributes(IElementAttributes) may expose internal representation by storing an externally mutable object into CacheGroup.attr MALICIOUS_CODE EI_EXPOSE_REP2 47 Medium

org.apache.commons.jcs3.engine.CacheWatchRepairable

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.CacheWatchRepairable.setCacheWatch(ICacheObserver) may expose internal representation by storing an externally mutable object into CacheWatchRepairable.cacheWatch MALICIOUS_CODE EI_EXPOSE_REP2 60 Medium

org.apache.commons.jcs3.engine.ElementAttributes

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.ElementAttributes.getElementEventHandlers() may expose internal representation by returning ElementAttributes.eventHandlers MALICIOUS_CODE EI_EXPOSE_REP 415 Medium

org.apache.commons.jcs3.engine.control.CompositeCache

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.control.CompositeCache.getAuxCacheList() may expose internal representation by returning CompositeCache.auxCaches MALICIOUS_CODE EI_EXPOSE_REP 229 Medium
org.apache.commons.jcs3.engine.control.CompositeCache.getCacheAttributes() may expose internal representation by returning CompositeCache.cacheAttr MALICIOUS_CODE EI_EXPOSE_REP 1432 Medium
org.apache.commons.jcs3.engine.control.CompositeCache.getMemoryCache() may expose internal representation by returning CompositeCache.memCache MALICIOUS_CODE EI_EXPOSE_REP 1614 Medium
new org.apache.commons.jcs3.engine.control.CompositeCache(ICompositeCacheAttributes, IElementAttributes) may expose internal representation by storing an externally mutable object into CompositeCache.attr MALICIOUS_CODE EI_EXPOSE_REP2 140 Medium
new org.apache.commons.jcs3.engine.control.CompositeCache(ICompositeCacheAttributes, IElementAttributes) may expose internal representation by storing an externally mutable object into CompositeCache.cacheAttr MALICIOUS_CODE EI_EXPOSE_REP2 141 Medium
org.apache.commons.jcs3.engine.control.CompositeCache.setCacheAttributes(ICompositeCacheAttributes) may expose internal representation by storing an externally mutable object into CompositeCache.cacheAttr MALICIOUS_CODE EI_EXPOSE_REP2 1442 Medium
org.apache.commons.jcs3.engine.control.CompositeCache.setCompositeCacheManager(CompositeCacheManager) may expose internal representation by storing an externally mutable object into CompositeCache.cacheManager MALICIOUS_CODE EI_EXPOSE_REP2 173 Medium
org.apache.commons.jcs3.engine.control.CompositeCache.setElementAttributes(IElementAttributes) may expose internal representation by storing an externally mutable object into CompositeCache.attr MALICIOUS_CODE EI_EXPOSE_REP2 1422 Medium
org.apache.commons.jcs3.engine.control.CompositeCache.setElementEventQueue(IElementEventQueue) may expose internal representation by storing an externally mutable object into CompositeCache.elementEventQ MALICIOUS_CODE EI_EXPOSE_REP2 163 Medium

org.apache.commons.jcs3.engine.control.CompositeCacheManager

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.control.CompositeCacheManager.getConfigurationProperties() may expose internal representation by returning CompositeCacheManager.configurationProperties MALICIOUS_CODE EI_EXPOSE_REP 891 Medium
org.apache.commons.jcs3.engine.control.CompositeCacheManager.getElementEventQueue() may expose internal representation by returning CompositeCacheManager.elementEventQueue MALICIOUS_CODE EI_EXPOSE_REP 291 Medium
Inconsistent synchronization of org.apache.commons.jcs3.engine.control.CompositeCacheManager.isJMXRegistered; locked 66% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 912 Medium
Inconsistent synchronization of org.apache.commons.jcs3.engine.control.CompositeCacheManager.jmxName; locked 50% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 916 Medium
Public static org.apache.commons.jcs3.engine.control.CompositeCacheManager.getInstance(String) may expose internal representation by returning CompositeCacheManager.instance MALICIOUS_CODE MS_EXPOSE_REP 193 Medium
Public static org.apache.commons.jcs3.engine.control.CompositeCacheManager.getUnconfiguredInstance() may expose internal representation by returning CompositeCacheManager.instance MALICIOUS_CODE MS_EXPOSE_REP 217 Medium

org.apache.commons.jcs3.engine.memory.AbstractMemoryCache

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.memory.AbstractMemoryCache.getCacheAttributes() may expose internal representation by returning AbstractMemoryCache.cacheAttributes MALICIOUS_CODE EI_EXPOSE_REP 305 Medium
org.apache.commons.jcs3.engine.memory.AbstractMemoryCache.getCompositeCache() may expose internal representation by returning AbstractMemoryCache.cache MALICIOUS_CODE EI_EXPOSE_REP 327 Medium
org.apache.commons.jcs3.engine.memory.AbstractMemoryCache.initialize(CompositeCache) may expose internal representation by storing an externally mutable object into AbstractMemoryCache.cache MALICIOUS_CODE EI_EXPOSE_REP2 95 Medium
org.apache.commons.jcs3.engine.memory.AbstractMemoryCache.setCacheAttributes(ICompositeCacheAttributes) may expose internal representation by storing an externally mutable object into AbstractMemoryCache.cacheAttributes MALICIOUS_CODE EI_EXPOSE_REP2 316 Medium

org.apache.commons.jcs3.engine.memory.lru.LHMLRUMemoryCache$LHMSpooler

Bug Category Details Line Priority
new org.apache.commons.jcs3.engine.memory.lru.LHMLRUMemoryCache$LHMSpooler(LHMLRUMemoryCache) may expose internal representation by storing an externally mutable object into LHMLRUMemoryCache$LHMSpooler.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 170 Medium

org.apache.commons.jcs3.engine.memory.shrinking.ShrinkerThread

Bug Category Details Line Priority
new org.apache.commons.jcs3.engine.memory.shrinking.ShrinkerThread(CompositeCache) may expose internal representation by storing an externally mutable object into ShrinkerThread.cache MALICIOUS_CODE EI_EXPOSE_REP2 61 Medium

org.apache.commons.jcs3.engine.stats.CacheStats

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.stats.CacheStats.getAuxiliaryCacheStats() may expose internal representation by returning CacheStats.auxStats MALICIOUS_CODE EI_EXPOSE_REP 73 Medium
org.apache.commons.jcs3.engine.stats.CacheStats.setAuxiliaryCacheStats(List) may expose internal representation by storing an externally mutable object into CacheStats.auxStats MALICIOUS_CODE EI_EXPOSE_REP2 82 Medium

org.apache.commons.jcs3.engine.stats.Stats

Bug Category Details Line Priority
org.apache.commons.jcs3.engine.stats.Stats.getStatElements() may expose internal representation by returning Stats.stats MALICIOUS_CODE EI_EXPOSE_REP 47 Medium
org.apache.commons.jcs3.engine.stats.Stats.setStatElements(List) may expose internal representation by storing an externally mutable object into Stats.stats MALICIOUS_CODE EI_EXPOSE_REP2 56 Medium

org.apache.commons.jcs3.log.JulLogAdapter

Bug Category Details Line Priority
new org.apache.commons.jcs3.log.JulLogAdapter(Logger) may expose internal representation by storing an externally mutable object into JulLogAdapter.logger MALICIOUS_CODE EI_EXPOSE_REP2 51 Medium

org.apache.commons.jcs3.log.MessageFormatter

Bug Category Details Line Priority
org.apache.commons.jcs3.log.MessageFormatter.getThrowable() may expose internal representation by returning MessageFormatter.throwable MALICIOUS_CODE EI_EXPOSE_REP 118 Medium

org.apache.commons.jcs3.utils.config.PropertySetterException

Bug Category Details Line Priority
new org.apache.commons.jcs3.utils.config.PropertySetterException(Throwable) may expose internal representation by storing an externally mutable object into PropertySetterException.rootCause MALICIOUS_CODE EI_EXPOSE_REP2 56 Medium

org.apache.commons.jcs3.utils.discovery.DiscoveredService

Bug Category Details Line Priority
org.apache.commons.jcs3.utils.discovery.DiscoveredService.getCacheNames() may expose internal representation by returning DiscoveredService.cacheNames MALICIOUS_CODE EI_EXPOSE_REP 83 Medium
org.apache.commons.jcs3.utils.discovery.DiscoveredService.setCacheNames(ArrayList) may expose internal representation by storing an externally mutable object into DiscoveredService.cacheNames MALICIOUS_CODE EI_EXPOSE_REP2 75 Medium

org.apache.commons.jcs3.utils.discovery.UDPCleanupRunner

Bug Category Details Line Priority
new org.apache.commons.jcs3.utils.discovery.UDPCleanupRunner(UDPDiscoveryService) may expose internal representation by storing an externally mutable object into UDPCleanupRunner.discoveryService MALICIOUS_CODE EI_EXPOSE_REP2 41 Medium

org.apache.commons.jcs3.utils.discovery.UDPDiscoveryMessage

Bug Category Details Line Priority
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryMessage.getCacheNames() may expose internal representation by returning UDPDiscoveryMessage.cacheNames MALICIOUS_CODE EI_EXPOSE_REP 145 Medium
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryMessage.setCacheNames(ArrayList) may expose internal representation by storing an externally mutable object into UDPDiscoveryMessage.cacheNames MALICIOUS_CODE EI_EXPOSE_REP2 137 Medium

org.apache.commons.jcs3.utils.discovery.UDPDiscoveryReceiver

Bug Category Details Line Priority
new org.apache.commons.jcs3.utils.discovery.UDPDiscoveryReceiver(UDPDiscoveryService, String, InetAddress, int) may expose internal representation by storing an externally mutable object into UDPDiscoveryReceiver.service MALICIOUS_CODE EI_EXPOSE_REP2 125 Medium
Synchronization performed on java.util.concurrent.ArrayBlockingQueue in org.apache.commons.jcs3.utils.discovery.UDPDiscoveryReceiver.run() MT_CORRECTNESS JLM_JSR166_UTILCONCURRENT_MONITORENTER 278 Medium

org.apache.commons.jcs3.utils.discovery.UDPDiscoveryReceiver$MessageHandler

Bug Category Details Line Priority
new org.apache.commons.jcs3.utils.discovery.UDPDiscoveryReceiver$MessageHandler(UDPDiscoveryReceiver, UDPDiscoveryMessage) may expose internal representation by storing an externally mutable object into UDPDiscoveryReceiver$MessageHandler.message MALICIOUS_CODE EI_EXPOSE_REP2 351 Medium
new org.apache.commons.jcs3.utils.discovery.UDPDiscoveryReceiver$MessageHandler(UDPDiscoveryReceiver, UDPDiscoveryMessage) may expose internal representation by storing an externally mutable object into UDPDiscoveryReceiver$MessageHandler.this$0 MALICIOUS_CODE EI_EXPOSE_REP2 350 Medium

org.apache.commons.jcs3.utils.discovery.UDPDiscoverySenderThread

Bug Category Details Line Priority
new org.apache.commons.jcs3.utils.discovery.UDPDiscoverySenderThread(UDPDiscoveryAttributes, ArrayList) may expose internal representation by storing an externally mutable object into UDPDiscoverySenderThread.attributes MALICIOUS_CODE EI_EXPOSE_REP2 73 Medium
new org.apache.commons.jcs3.utils.discovery.UDPDiscoverySenderThread(UDPDiscoveryAttributes, ArrayList) may expose internal representation by storing an externally mutable object into UDPDiscoverySenderThread.cacheNames MALICIOUS_CODE EI_EXPOSE_REP2 75 Medium

org.apache.commons.jcs3.utils.discovery.UDPDiscoveryService

Bug Category Details Line Priority
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryService.getUdpDiscoveryAttributes() may expose internal representation by returning UDPDiscoveryService.udpDiscoveryAttributes MALICIOUS_CODE EI_EXPOSE_REP 418 Medium
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryService.setUdpDiscoveryAttributes(UDPDiscoveryAttributes) may expose internal representation by storing an externally mutable object into UDPDiscoveryService.udpDiscoveryAttributes MALICIOUS_CODE EI_EXPOSE_REP2 410 Medium

org.apache.commons.jcs3.utils.threadpool.ThreadPoolManager

Bug Category Details Line Priority
org.apache.commons.jcs3.utils.threadpool.ThreadPoolManager.setProps(Properties) may expose internal static state by storing a mutable object into a static field org.apache.commons.jcs3.utils.threadpool.ThreadPoolManager.props MALICIOUS_CODE EI_EXPOSE_STATIC_REP2 299 Medium