Apache MyFaces
Documentation
Foundation

FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.3.9

Threshold is low

Effort is min

Summary

ClassesBugsErrorsMissing Classes
532300

org.apache.myfaces.commons.resourcehandler.ExtendedDefaultResourceHandlerSupport

BugCategoryDetailsLinePriority
org.apache.myfaces.commons.resourcehandler.ExtendedDefaultResourceHandlerSupport.getGzipResourcesSuffixes() may expose internal representation by returning ExtendedDefaultResourceHandlerSupport._gzipResourcesSuffixMALICIOUS_CODEEI_EXPOSE_REP156Medium
org.apache.myfaces.commons.resourcehandler.ExtendedDefaultResourceHandlerSupport.getResourceLoaders() may expose internal representation by returning ExtendedDefaultResourceHandlerSupport._resourceLoadersMALICIOUS_CODEEI_EXPOSE_REP420Medium
Redundant nullcheck of mapping, which is known to be non-null in org.apache.myfaces.commons.resourcehandler.ExtendedDefaultResourceHandlerSupport.calculateResourceBasePath(FacesContext)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE234Low
Useless control flow in org.apache.myfaces.commons.resourcehandler.ExtendedDefaultResourceHandlerSupport.getFacesServletPrefixMapping(FacesContext, WebRegistration)STYLEUCF_USELESS_CONTROL_FLOW346Medium

org.apache.myfaces.commons.resourcehandler.ExtendedResourceHandlerImpl

BugCategoryDetailsLinePriority
Redundant nullcheck of libraryName, which is known to be non-null in org.apache.myfaces.commons.resourcehandler.ExtendedResourceHandlerImpl.handleResourceRequest(FacesContext)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE421Low

org.apache.myfaces.commons.resourcehandler.GZIPResourceLoader

BugCategoryDetailsLinePriority
org.apache.myfaces.commons.resourcehandler.GZIPResourceLoader.createCompressedFileVersion(FacesContext, ResourceMeta, File) ignores exceptional return value of java.io.File.delete()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE246Medium
org.apache.myfaces.commons.resourcehandler.GZIPResourceLoader.createCompressedFileVersion(FacesContext, ResourceMeta, File) ignores exceptional return value of java.io.File.mkdirs()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE245Medium
org.apache.myfaces.commons.resourcehandler.GZIPResourceLoader.initialize() ignores exceptional return value of java.io.File.mkdirs()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE93Medium

org.apache.myfaces.commons.resourcehandler.config.MyFacesResourceHandlerConfigParser$LibraryHandler

BugCategoryDetailsLinePriority
MyFacesResourceHandlerConfigParser$LibraryHandler.locator not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot availableLow

org.apache.myfaces.commons.resourcehandler.resource.BaseResourceHandlerSupport

BugCategoryDetailsLinePriority
Should org.apache.myfaces.commons.resourcehandler.resource.BaseResourceHandlerSupport.getResourceLoaders() return a zero length array rather than null?STYLEPZLA_PREFER_ZERO_LENGTH_ARRAYS64Low
Redundant nullcheck of mapping, which is known to be non-null in org.apache.myfaces.commons.resourcehandler.resource.BaseResourceHandlerSupport.calculateResourceBasePath(FacesContext)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE72Low
Redundant nullcheck of mapping, which is known to be non-null in org.apache.myfaces.commons.resourcehandler.resource.BaseResourceHandlerSupport.getMapping()STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE134Low

org.apache.myfaces.commons.resourcehandler.resource.ExternalContextResourceLoader

BugCategoryDetailsLinePriority
org.apache.myfaces.commons.resourcehandler.resource.ExternalContextResourceLoader.RESOURCE_VERSION_CHECKER isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL49High
org.apache.myfaces.commons.resourcehandler.resource.ExternalContextResourceLoader.VERSION_CHECKER isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL42High

org.apache.myfaces.commons.resourcehandler.resource.ResourceLoader$VersionComparator

BugCategoryDetailsLinePriority
Should org.apache.myfaces.commons.resourcehandler.resource.ResourceLoader$VersionComparator be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC86-147Medium

org.apache.myfaces.commons.resourcehandler.resource.ResourceLoaderUtils

BugCategoryDetailsLinePriority
Method org.apache.myfaces.commons.resourcehandler.resource.ResourceLoaderUtils.parseDateHeader(String) invokes inefficient new Long(long) constructor; use Long.valueOf(long) insteadPERFORMANCEDM_NUMBER_CTOR75Medium

org.apache.myfaces.commons.resourcehandler.resource.ValueExpressionFilterInputStream

BugCategoryDetailsLinePriority
Unwritten field: org.apache.myfaces.commons.resourcehandler.resource.ValueExpressionFilterInputStream.libraryNameCORRECTNESSUWF_UNWRITTEN_FIELD111Medium
Unwritten field: org.apache.myfaces.commons.resourcehandler.resource.ValueExpressionFilterInputStream.resourceNameCORRECTNESSUWF_UNWRITTEN_FIELD111Medium

org.apache.myfaces.commons.resourcehandler.webapp.config.impl.WebXmlConfigParser$WebConfigHandler

BugCategoryDetailsLinePriority
WebXmlConfigParser$WebConfigHandler.locator not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot availableLow
WebXmlConfigParser$WebConfigHandler.servletNameMappings not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot availableLow
WebXmlConfigParser$WebConfigHandler.urlPatterns not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot availableLow

org.apache.myfaces.commons.resourcehandler.webapp.config.impl._ExternalSpecifications

BugCategoryDetailsLinePriority
Incorrect lazy initialization and update of static field org.apache.myfaces.commons.resourcehandler.webapp.config.impl._ExternalSpecifications.servlet30Available in org.apache.myfaces.commons.resourcehandler.webapp.config.impl._ExternalSpecifications.isServlet30Available()MT_CORRECTNESSLI_LAZY_INIT_UPDATE_STATIC46-50Medium