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 |
59 |
44 |
0 |
0 |
org.apache.commons.jcs3.jcache.EvictionListener
Bug |
Category |
Details |
Line |
Priority |
new org.apache.commons.jcs3.jcache.EvictionListener(Statistics) may expose internal representation by storing an externally mutable object into EvictionListener.stats |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
30 |
Medium |
org.apache.commons.jcs3.jcache.ImmutableIterator
Bug |
Category |
Details |
Line |
Priority |
new org.apache.commons.jcs3.jcache.ImmutableIterator(Iterator) may expose internal representation by storing an externally mutable object into ImmutableIterator.delegate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
29 |
Medium |
org.apache.commons.jcs3.jcache.JCSCache
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs3.jcache.JCSCache.getStatistics() may expose internal representation by returning JCSCache.statistics |
MALICIOUS_CODE |
EI_EXPOSE_REP |
964 |
Medium |
new org.apache.commons.jcs3.jcache.JCSCache(ClassLoader, JCSCachingManager, String, JCSConfiguration, Properties, ExpiryAwareCache) may expose internal representation by storing an externally mutable object into JCSCache.config |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
104 |
Medium |
new org.apache.commons.jcs3.jcache.JCSCache(ClassLoader, JCSCachingManager, String, JCSConfiguration, Properties, ExpiryAwareCache) may expose internal representation by storing an externally mutable object into JCSCache.delegate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
97 |
Medium |
org.apache.commons.jcs3.jcache.JCSCachingManager
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs3.jcache.JCSCachingManager.getClassLoader() may expose internal representation by returning JCSCachingManager.loader |
MALICIOUS_CODE |
EI_EXPOSE_REP |
369 |
Medium |
org.apache.commons.jcs3.jcache.JCSCachingManager.getProperties() may expose internal representation by returning JCSCachingManager.configProperties |
MALICIOUS_CODE |
EI_EXPOSE_REP |
375 |
Medium |
new org.apache.commons.jcs3.jcache.JCSCachingManager(CachingProvider, URI, ClassLoader, Properties) may expose internal representation by storing an externally mutable object into JCSCachingManager.configProperties |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
109 |
Medium |
new org.apache.commons.jcs3.jcache.JCSCachingManager(CachingProvider, URI, ClassLoader, Properties) may expose internal representation by storing an externally mutable object into JCSCachingManager.loader |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
107 |
Medium |
org.apache.commons.jcs3.jcache.JCSMutableEntry
Bug |
Category |
Details |
Line |
Priority |
new org.apache.commons.jcs3.jcache.JCSMutableEntry(Cache, Object) may expose internal representation by storing an externally mutable object into JCSMutableEntry.cache |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
31 |
Medium |
org.apache.commons.jcs3.jcache.TempStateCacheView
Bug |
Category |
Details |
Line |
Priority |
new org.apache.commons.jcs3.jcache.TempStateCacheView(JCSCache) may expose internal representation by storing an externally mutable object into TempStateCacheView.cache |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
52 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper
Bug |
Category |
Details |
Line |
Priority |
Null passed for non-null parameter of findDefaults(Class, Method) in org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper.createMeta(InvocationContext) |
CORRECTNESS |
NP_NULL_PARAM_DEREF |
119 |
High |
org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta.getAnnotations() may expose internal representation by returning CDIJCacheHelper$MethodMeta.annotations |
MALICIOUS_CODE |
EI_EXPOSE_REP |
592 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta.getKeysIndices() may expose internal representation by returning CDIJCacheHelper$MethodMeta.keysIndices |
MALICIOUS_CODE |
EI_EXPOSE_REP |
597 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta.getParameterAnnotations() may expose internal representation by returning CDIJCacheHelper$MethodMeta.parameterAnnotations |
MALICIOUS_CODE |
EI_EXPOSE_REP |
563 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta.getParameterIndices() may expose internal representation by returning CDIJCacheHelper$MethodMeta.parameterIndices |
MALICIOUS_CODE |
EI_EXPOSE_REP |
587 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta.getParameterTypes() may expose internal representation by returning CDIJCacheHelper$MethodMeta.parameterTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP |
558 |
Medium |
new org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta(Class[], List, Set, Integer[], Integer, Integer[], String, CacheResolverFactory, CacheKeyGenerator, CacheResult, String, CacheResolverFactory, CacheKeyGenerator, boolean, CachePut, String, CacheResolverFactory, CacheKeyGenerator, boolean, CacheRemove, String, CacheResolverFactory, boolean, CacheRemoveAll) may expose internal representation by storing an externally mutable object into CDIJCacheHelper$MethodMeta.annotations |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
522 |
Medium |
new org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta(Class[], List, Set, Integer[], Integer, Integer[], String, CacheResolverFactory, CacheKeyGenerator, CacheResult, String, CacheResolverFactory, CacheKeyGenerator, boolean, CachePut, String, CacheResolverFactory, CacheKeyGenerator, boolean, CacheRemove, String, CacheResolverFactory, boolean, CacheRemoveAll) may expose internal representation by storing an externally mutable object into CDIJCacheHelper$MethodMeta.keysIndices |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
523 |
Medium |
new org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta(Class[], List, Set, Integer[], Integer, Integer[], String, CacheResolverFactory, CacheKeyGenerator, CacheResult, String, CacheResolverFactory, CacheKeyGenerator, boolean, CachePut, String, CacheResolverFactory, CacheKeyGenerator, boolean, CacheRemove, String, CacheResolverFactory, boolean, CacheRemoveAll) may expose internal representation by storing an externally mutable object into CDIJCacheHelper$MethodMeta.parameterAnnotations |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
521 |
Medium |
new org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta(Class[], List, Set, Integer[], Integer, Integer[], String, CacheResolverFactory, CacheKeyGenerator, CacheResult, String, CacheResolverFactory, CacheKeyGenerator, boolean, CachePut, String, CacheResolverFactory, CacheKeyGenerator, boolean, CacheRemove, String, CacheResolverFactory, boolean, CacheRemoveAll) may expose internal representation by storing an externally mutable object into CDIJCacheHelper$MethodMeta.parameterIndices |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
525 |
Medium |
new org.apache.commons.jcs3.jcache.cdi.CDIJCacheHelper$MethodMeta(Class[], List, Set, Integer[], Integer, Integer[], String, CacheResolverFactory, CacheKeyGenerator, CacheResult, String, CacheResolverFactory, CacheKeyGenerator, boolean, CachePut, String, CacheResolverFactory, CacheKeyGenerator, boolean, CacheRemove, String, CacheResolverFactory, boolean, CacheRemoveAll) may expose internal representation by storing an externally mutable object into CDIJCacheHelper$MethodMeta.parameterTypes |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
520 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CacheInvocationContextImpl
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs3.jcache.cdi.CacheInvocationContextImpl.getAllParameters() may expose internal representation by returning CacheInvocationContextImpl.parameters |
MALICIOUS_CODE |
EI_EXPOSE_REP |
54 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CacheInvocationParameterImpl
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs3.jcache.cdi.CacheInvocationParameterImpl.getAnnotations() may expose internal representation by returning CacheInvocationParameterImpl.annotations |
MALICIOUS_CODE |
EI_EXPOSE_REP |
55 |
Medium |
new org.apache.commons.jcs3.jcache.cdi.CacheInvocationParameterImpl(Class, Object, Set, int) may expose internal representation by storing an externally mutable object into CacheInvocationParameterImpl.annotations |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
36 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CacheKeyInvocationContextImpl
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs3.jcache.cdi.CacheKeyInvocationContextImpl.getKeyParameters() may expose internal representation by returning CacheKeyInvocationContextImpl.keyParams |
MALICIOUS_CODE |
EI_EXPOSE_REP |
45 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CacheMethodDetailsImpl
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs3.jcache.cdi.CacheMethodDetailsImpl.getAnnotations() may expose internal representation by returning CacheMethodDetailsImpl.annotations |
MALICIOUS_CODE |
EI_EXPOSE_REP |
54 |
Medium |
new org.apache.commons.jcs3.jcache.cdi.CacheMethodDetailsImpl(InvocationContext, Annotation, String, CDIJCacheHelper$MethodMeta) may expose internal representation by storing an externally mutable object into CacheMethodDetailsImpl.delegate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
38 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CachePutInterceptor
Bug |
Category |
Details |
Line |
Priority |
Class org.apache.commons.jcs3.jcache.cdi.CachePutInterceptor defines non-transient non-serializable instance field helper |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
org.apache.commons.jcs3.jcache.cdi.CacheRemoveAllInterceptor
Bug |
Category |
Details |
Line |
Priority |
Class org.apache.commons.jcs3.jcache.cdi.CacheRemoveAllInterceptor defines non-transient non-serializable instance field helper |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
org.apache.commons.jcs3.jcache.cdi.CacheRemoveInterceptor
Bug |
Category |
Details |
Line |
Priority |
Class org.apache.commons.jcs3.jcache.cdi.CacheRemoveInterceptor defines non-transient non-serializable instance field helper |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
org.apache.commons.jcs3.jcache.cdi.CacheResolverImpl
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs3.jcache.cdi.CacheResolverImpl.resolveCache(CacheInvocationContext) may expose internal representation by returning CacheResolverImpl.delegate |
MALICIOUS_CODE |
EI_EXPOSE_REP |
38 |
Medium |
new org.apache.commons.jcs3.jcache.cdi.CacheResolverImpl(Cache) may expose internal representation by storing an externally mutable object into CacheResolverImpl.delegate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
32 |
Medium |
org.apache.commons.jcs3.jcache.cdi.CacheResultInterceptor
Bug |
Category |
Details |
Line |
Priority |
Class org.apache.commons.jcs3.jcache.cdi.CacheResultInterceptor defines non-transient non-serializable instance field helper |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
org.apache.commons.jcs3.jcache.cdi.GeneratedCacheKeyImpl
Bug |
Category |
Details |
Line |
Priority |
new org.apache.commons.jcs3.jcache.cdi.GeneratedCacheKeyImpl(Object[]) may expose internal representation by storing an externally mutable object into GeneratedCacheKeyImpl.params |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
35 |
Medium |
org.apache.commons.jcs3.jcache.cdi.MakeJCacheCDIInterceptorFriendly$HelperBean
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs3.jcache.cdi.MakeJCacheCDIInterceptorFriendly$HelperBean.getQualifiers() may expose internal representation by returning MakeJCacheCDIInterceptorFriendly$HelperBean.qualifiers |
MALICIOUS_CODE |
EI_EXPOSE_REP |
179 |
Medium |
org.apache.commons.jcs3.jcache.jmx.ConfigurableMBeanServerIdBuilder$ForceIdMBeanServerDelegate
Bug |
Category |
Details |
Line |
Priority |
Should org.apache.commons.jcs3.jcache.jmx.ConfigurableMBeanServerIdBuilder$ForceIdMBeanServerDelegate be a _static_ inner class? |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC |
94-170 |
Medium |
org.apache.commons.jcs3.jcache.jmx.JCSCacheMXBean
Bug |
Category |
Details |
Line |
Priority |
new org.apache.commons.jcs3.jcache.jmx.JCSCacheMXBean(Cache) may expose internal representation by storing an externally mutable object into JCSCacheMXBean.delegate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
32 |
Medium |
org.apache.commons.jcs3.jcache.jmx.JCSCacheStatisticsMXBean
Bug |
Category |
Details |
Line |
Priority |
new org.apache.commons.jcs3.jcache.jmx.JCSCacheStatisticsMXBean(Statistics) may expose internal representation by storing an externally mutable object into JCSCacheStatisticsMXBean.statistics |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
31 |
Medium |
Integral division result cast to double or float in org.apache.commons.jcs3.jcache.jmx.JCSCacheStatisticsMXBean.averageTime(long) |
STYLE |
ICAST_IDIV_CAST_TO_DOUBLE |
123 |
Medium |
org.apache.commons.jcs3.jcache.jmx.JMXs
Bug |
Category |
Details |
Line |
Priority |
Public static org.apache.commons.jcs3.jcache.jmx.JMXs.server() may expose internal representation by returning JMXs.SERVER |
MALICIOUS_CODE |
MS_EXPOSE_REP |
32 |
Medium |
org.apache.commons.jcs3.jcache.proxy.ClassLoaderAwareCache
Bug |
Category |
Details |
Line |
Priority |
new org.apache.commons.jcs3.jcache.proxy.ClassLoaderAwareCache(ClassLoader, JCSCache) may expose internal representation by storing an externally mutable object into ClassLoaderAwareCache.delegate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
46 |
Medium |
new org.apache.commons.jcs3.jcache.proxy.ClassLoaderAwareCache(ClassLoader, JCSCache) may expose internal representation by storing an externally mutable object into ClassLoaderAwareCache.loader |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
45 |
Medium |
Public static org.apache.commons.jcs3.jcache.proxy.ClassLoaderAwareCache.getDelegate(Cache) may expose internal representation by returning ClassLoaderAwareCache.delegate |
MALICIOUS_CODE |
MS_EXPOSE_REP |
512 |
Medium |
|