FindBugs Bug Detector Report
The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is min
Summary
Classes |
Bugs |
Errors |
Missing Classes |
62 |
18 |
0 |
0 |
org.apache.commons.jcs.jcache.EvictionListener
Bug |
Category |
Details |
Line |
Priority |
Switch statement found in org.apache.commons.jcs.jcache.EvictionListener.handleElementEvent(IElementEvent) where default case is missing |
STYLE |
SF_SWITCH_NO_DEFAULT |
36-42 |
Medium |
org.apache.commons.jcs.jcache.JCSCachingManager
Bug |
Category |
Details |
Line |
Priority |
Nullcheck of configuration at line 208 of value previously dereferenced in org.apache.commons.jcs.jcache.JCSCachingManager.createCache(String, Configuration) |
CORRECTNESS |
RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE |
207 |
High |
org.apache.commons.jcs.jcache.cdi.CDIJCacheHelper
Bug |
Category |
Details |
Line |
Priority |
Null passed for non-null parameter of findDefaults(Class, Method) in org.apache.commons.jcs.jcache.cdi.CDIJCacheHelper.createMeta(InvocationContext) |
CORRECTNESS |
NP_NULL_PARAM_DEREF |
119 |
High |
org.apache.commons.jcs.jcache.cdi.CDIJCacheHelper$MethodMeta
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs.jcache.cdi.CDIJCacheHelper$MethodMeta.getKeysIndices() may expose internal representation by returning CDIJCacheHelper$MethodMeta.keysIndices |
MALICIOUS_CODE |
EI_EXPOSE_REP |
597 |
Medium |
org.apache.commons.jcs.jcache.cdi.CDIJCacheHelper$MethodMeta.getParameterIndices() may expose internal representation by returning CDIJCacheHelper$MethodMeta.parameterIndices |
MALICIOUS_CODE |
EI_EXPOSE_REP |
587 |
Medium |
org.apache.commons.jcs.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.jcs.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.jcs.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.jcs.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.jcs.jcache.cdi.CacheInvocationContextImpl
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs.jcache.cdi.CacheInvocationContextImpl.getAllParameters() may expose internal representation by returning CacheInvocationContextImpl.parameters |
MALICIOUS_CODE |
EI_EXPOSE_REP |
54 |
Medium |
org.apache.commons.jcs.jcache.cdi.CacheKeyInvocationContextImpl
Bug |
Category |
Details |
Line |
Priority |
org.apache.commons.jcs.jcache.cdi.CacheKeyInvocationContextImpl.getKeyParameters() may expose internal representation by returning CacheKeyInvocationContextImpl.keyParams |
MALICIOUS_CODE |
EI_EXPOSE_REP |
45 |
Medium |
org.apache.commons.jcs.jcache.cdi.CachePutInterceptor
Bug |
Category |
Details |
Line |
Priority |
Class org.apache.commons.jcs.jcache.cdi.CachePutInterceptor defines non-transient non-serializable instance field helper |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
org.apache.commons.jcs.jcache.cdi.CacheRemoveAllInterceptor
Bug |
Category |
Details |
Line |
Priority |
Class org.apache.commons.jcs.jcache.cdi.CacheRemoveAllInterceptor defines non-transient non-serializable instance field helper |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
org.apache.commons.jcs.jcache.cdi.CacheRemoveInterceptor
Bug |
Category |
Details |
Line |
Priority |
Class org.apache.commons.jcs.jcache.cdi.CacheRemoveInterceptor defines non-transient non-serializable instance field helper |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
org.apache.commons.jcs.jcache.cdi.CacheResultInterceptor
Bug |
Category |
Details |
Line |
Priority |
Class org.apache.commons.jcs.jcache.cdi.CacheResultInterceptor defines non-transient non-serializable instance field helper |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
org.apache.commons.jcs.jcache.cdi.GeneratedCacheKeyImpl
Bug |
Category |
Details |
Line |
Priority |
new org.apache.commons.jcs.jcache.cdi.GeneratedCacheKeyImpl(Object[]) may expose internal representation by storing an externally mutable object into GeneratedCacheKeyImpl.params |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
31 |
Medium |
org.apache.commons.jcs.jcache.jmx.ConfigurableMBeanServerIdBuilder$ForceIdMBeanServerDelegate
Bug |
Category |
Details |
Line |
Priority |
Should org.apache.commons.jcs.jcache.jmx.ConfigurableMBeanServerIdBuilder$ForceIdMBeanServerDelegate be a _static_ inner class? |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC |
92-168 |
Medium |
org.apache.commons.jcs.jcache.jmx.JCSCacheStatisticsMXBean
Bug |
Category |
Details |
Line |
Priority |
Integral division result cast to double or float in org.apache.commons.jcs.jcache.jmx.JCSCacheStatisticsMXBean.averageTime(long) |
STYLE |
ICAST_IDIV_CAST_TO_DOUBLE |
123 |
Medium |
|