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
22 15 0 0

Files

Class Bugs
org.apache.commons.jcs3.jcache.extras.cdi.CacheManagerBean 2
org.apache.commons.jcs3.jcache.extras.cdi.CacheProviderBean 2
org.apache.commons.jcs3.jcache.extras.web.InMemoryResponse 7
org.apache.commons.jcs3.jcache.extras.web.JCacheFilter$Page 3
org.apache.commons.jcs3.jcache.extras.writer.AsyncCacheWriter 1

org.apache.commons.jcs3.jcache.extras.cdi.CacheManagerBean

Bug Category Details Line Priority
org.apache.commons.jcs3.jcache.extras.cdi.CacheManagerBean.getQualifiers() may expose internal representation by returning CacheManagerBean.qualifiers MALICIOUS_CODE EI_EXPOSE_REP 64 Medium
org.apache.commons.jcs3.jcache.extras.cdi.CacheManagerBean.getTypes() may expose internal representation by returning CacheManagerBean.types MALICIOUS_CODE EI_EXPOSE_REP 58 Medium

org.apache.commons.jcs3.jcache.extras.cdi.CacheProviderBean

Bug Category Details Line Priority
org.apache.commons.jcs3.jcache.extras.cdi.CacheProviderBean.getQualifiers() may expose internal representation by returning CacheProviderBean.qualifiers MALICIOUS_CODE EI_EXPOSE_REP 64 Medium
org.apache.commons.jcs3.jcache.extras.cdi.CacheProviderBean.getTypes() may expose internal representation by returning CacheProviderBean.types MALICIOUS_CODE EI_EXPOSE_REP 58 Medium

org.apache.commons.jcs3.jcache.extras.web.InMemoryResponse

Bug Category Details Line Priority
org.apache.commons.jcs3.jcache.extras.web.InMemoryResponse.getCookies() may expose internal representation by returning InMemoryResponse.cookies MALICIOUS_CODE EI_EXPOSE_REP 264 Medium
org.apache.commons.jcs3.jcache.extras.web.InMemoryResponse.getHeaders() may expose internal representation by returning InMemoryResponse.headers MALICIOUS_CODE EI_EXPOSE_REP 269 Medium
org.apache.commons.jcs3.jcache.extras.web.InMemoryResponse.getWriter() may expose internal representation by returning InMemoryResponse.writer MALICIOUS_CODE EI_EXPOSE_REP 216 Medium
new org.apache.commons.jcs3.jcache.extras.web.InMemoryResponse(HttpServletResponse, OutputStream) may expose internal representation by storing an externally mutable object into InMemoryResponse.buffer MALICIOUS_CODE EI_EXPOSE_REP2 52 Medium
Class org.apache.commons.jcs3.jcache.extras.web.InMemoryResponse defines non-transient non-serializable instance field writer BAD_PRACTICE SE_BAD_FIELD Not available High
Class org.apache.commons.jcs3.jcache.extras.web.InMemoryResponse defines non-transient non-serializable instance field buffer BAD_PRACTICE SE_BAD_FIELD Not available Medium
org.apache.commons.jcs3.jcache.extras.web.InMemoryResponse is Serializable but its superclass doesn't define an accessible void constructor BAD_PRACTICE SE_NO_SUITABLE_CONSTRUCTOR 38-269 High

org.apache.commons.jcs3.jcache.extras.web.JCacheFilter$Page

Bug Category Details Line Priority
new org.apache.commons.jcs3.jcache.extras.web.JCacheFilter$Page(int, String, int, Collection, Map, byte[]) may expose internal representation by storing an externally mutable object into JCacheFilter$Page.cookies MALICIOUS_CODE EI_EXPOSE_REP2 302 Medium
new org.apache.commons.jcs3.jcache.extras.web.JCacheFilter$Page(int, String, int, Collection, Map, byte[]) may expose internal representation by storing an externally mutable object into JCacheFilter$Page.headers MALICIOUS_CODE EI_EXPOSE_REP2 303 Medium
new org.apache.commons.jcs3.jcache.extras.web.JCacheFilter$Page(int, String, int, Collection, Map, byte[]) may expose internal representation by storing an externally mutable object into JCacheFilter$Page.out MALICIOUS_CODE EI_EXPOSE_REP2 304 Medium

org.apache.commons.jcs3.jcache.extras.writer.AsyncCacheWriter

Bug Category Details Line Priority
new org.apache.commons.jcs3.jcache.extras.writer.AsyncCacheWriter(CacheWriter, int) may expose internal representation by storing an externally mutable object into AsyncCacheWriter.writer MALICIOUS_CODE EI_EXPOSE_REP2 45 Medium