UI-Component Sets

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
2034500

javax.faces.application.FacesMessage$Severity

BugCategoryDetailsLinePriority
javax.faces.application.FacesMessage$Severity defines compareTo(Object) and uses Object.equals()BAD_PRACTICEEQ_COMPARETO_USE_OBJECT_EQUALS177-181Medium

javax.faces.application.StateManager$SerializedView

BugCategoryDetailsLinePriority
Should javax.faces.application.StateManager$SerializedView be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC142-154Medium

javax.faces.component.UICommand

BugCategoryDetailsLinePriority
Method call in javax.faces.component.UICommand.queueEvent(FacesEvent) passes null for nonnull parameter of UIComponentBase.queueEvent(FacesEvent)CORRECTNESSNP_NULL_PARAM_DEREF169Medium

javax.faces.component.UIData

BugCategoryDetailsLinePriority
Switch statement found in javax.faces.component.UIData.process(FacesContext, UIComponent, int) where default case is missingSTYLESF_SWITCH_NO_DEFAULT797-800Low

javax.faces.component.UIData$EditableValueHolderState

BugCategoryDetailsLinePriority
Should javax.faces.component.UIData$EditableValueHolderState be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC1014-1027Medium

javax.faces.component.UISelectMany

BugCategoryDetailsLinePriority
Redundant nullcheck of previous, which is known to be non-null in javax.faces.component.UISelectMany.compareValues(Object, Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE125Medium

javax.faces.component.UIViewRoot

BugCategoryDetailsLinePriority
Switch statement found in javax.faces.component.UIViewRoot.getLocale(String) where default case is missingSTYLESF_SWITCH_NO_DEFAULT291-294Low

javax.faces.component._AttachedListStateWrapper

BugCategoryDetailsLinePriority
Class javax.faces.component._AttachedListStateWrapper defines non-transient non-serializable instance field _wrappedStateListBAD_PRACTICESE_BAD_FIELDNot availableLow

javax.faces.component._ComponentAttributesMap

BugCategoryDetailsLinePriority
Class javax.faces.component._ComponentAttributesMap defines non-transient non-serializable instance field _componentBAD_PRACTICESE_BAD_FIELDNot availableMedium
Class javax.faces.component._ComponentAttributesMap defines non-transient non-serializable instance field _attributesBAD_PRACTICESE_BAD_FIELDNot availableLow

javax.faces.component._ComponentChildrenList

BugCategoryDetailsLinePriority
Possible null pointer dereference of child in javax.faces.component._ComponentChildrenList.resetParent(UIComponent)CORRECTNESSNP_NULL_ON_SOME_PATH101Medium
Class javax.faces.component._ComponentChildrenList defines non-transient non-serializable instance field _componentBAD_PRACTICESE_BAD_FIELDNot availableMedium
Class javax.faces.component._ComponentChildrenList defines non-transient non-serializable instance field _idIndexedMapBAD_PRACTICESE_BAD_FIELDNot availableLow
Class javax.faces.component._ComponentChildrenList defines non-transient non-serializable instance field _listBAD_PRACTICESE_BAD_FIELDNot availableLow

javax.faces.component._ComponentFacetMap

BugCategoryDetailsLinePriority
Class javax.faces.component._ComponentFacetMap defines non-transient non-serializable instance field _componentBAD_PRACTICESE_BAD_FIELDNot availableMedium
Class javax.faces.component._ComponentFacetMap defines non-transient non-serializable instance field _mapBAD_PRACTICESE_BAD_FIELDNot availableLow

javax.faces.component._MessageUtils

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in javax.faces.component._MessageUtils.getCause(Throwable)STYLEREC_CATCH_EXCEPTION102Low

javax.faces.component._PrimitiveArrayIterator

BugCategoryDetailsLinePriority
javax.faces.component._PrimitiveArrayIterator.next() can't throw NoSuchElementExceptionBAD_PRACTICEIT_NO_SUCH_ELEMENT48Medium

javax.faces.component._SelectItemsIterator

BugCategoryDetailsLinePriority
Redundant nullcheck of component, which is known to be non-null in javax.faces.component._SelectItemsIterator.getPathToComponent(UIComponent, StringBuffer)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE251Low

javax.faces.convert.NumberConverter

BugCategoryDetailsLinePriority
Switch statement found in javax.faces.convert.NumberConverter.checkJavaVersion14() where one case falls through to the next caseSTYLESF_SWITCH_FALLTHROUGH508-511Medium
Switch statement found in javax.faces.convert.NumberConverter.checkJavaVersion14() where default case is missingSTYLESF_SWITCH_NO_DEFAULT513-517Low

javax.faces.event.PhaseEvent

BugCategoryDetailsLinePriority
Class javax.faces.event.PhaseEvent defines non-transient non-serializable instance field _facesContextBAD_PRACTICESE_BAD_FIELDNot availableMedium
Class javax.faces.event.PhaseEvent defines non-transient non-serializable instance field _phaseIdBAD_PRACTICESE_BAD_FIELDNot availableMedium

javax.faces.event.PhaseId

BugCategoryDetailsLinePriority
javax.faces.event.PhaseId defines compareTo(Object) and uses Object.equals()BAD_PRACTICEEQ_COMPARETO_USE_OBJECT_EQUALS78Medium

javax.faces.model.ArrayDataModel

BugCategoryDetailsLinePriority
javax.faces.model.ArrayDataModel.getWrappedData() may expose internal representation by returning ArrayDataModel._dataMALICIOUS_CODEEI_EXPOSE_REP75Medium
javax.faces.model.ArrayDataModel.setWrappedData(Object) may expose internal representation by storing an externally mutable object into ArrayDataModel._dataMALICIOUS_CODEEI_EXPOSE_REP2109Medium

javax.faces.model.ResultDataModel

BugCategoryDetailsLinePriority
Should javax.faces.model.ResultDataModel.getRows() return a zero length array rather than null?STYLEPZLA_PREFER_ZERO_LENGTH_ARRAYS113Low

javax.faces.model.ResultSetDataModel$WrapResultSetMap

BugCategoryDetailsLinePriority
javax.faces.model.ResultSetDataModel$WrapResultSetMap is serializable but also an inner class of a non-serializable classBAD_PRACTICESE_BAD_FIELD_INNER_CLASS245-375Low

javax.faces.model.SelectItemGroup

BugCategoryDetailsLinePriority
javax.faces.model.SelectItemGroup.getSelectItems() may expose internal representation by returning SelectItemGroup._selectItemsMALICIOUS_CODEEI_EXPOSE_REP59Medium
new javax.faces.model.SelectItemGroup(String, String, boolean, SelectItem[]) may expose internal representation by storing an externally mutable object into SelectItemGroup._selectItemsMALICIOUS_CODEEI_EXPOSE_REP253Medium
javax.faces.model.SelectItemGroup.setSelectItems(SelectItem[]) may expose internal representation by storing an externally mutable object into SelectItemGroup._selectItemsMALICIOUS_CODEEI_EXPOSE_REP265Medium

javax.faces.validator.DoubleRangeValidator

BugCategoryDetailsLinePriority
javax.faces.validator.DoubleRangeValidator defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE202-210High

javax.faces.validator.LengthValidator

BugCategoryDetailsLinePriority
javax.faces.validator.LengthValidator defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE173-181High

javax.faces.validator.LongRangeValidator

BugCategoryDetailsLinePriority
javax.faces.validator.LongRangeValidator defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE200-208High

javax.faces.webapp.FacesServlet

BugCategoryDetailsLinePriority
javax.faces.webapp.FacesServlet._facesContextFactory is a mutable servlet fieldMT_CORRECTNESSMSF_MUTABLE_SERVLET_FIELD73Low
javax.faces.webapp.FacesServlet._lifecycle is a mutable servlet fieldMT_CORRECTNESSMSF_MUTABLE_SERVLET_FIELD74Low
javax.faces.webapp.FacesServlet._servletConfig is a mutable servlet fieldMT_CORRECTNESSMSF_MUTABLE_SERVLET_FIELD80Low

javax.faces.webapp._ErrorPageWriter

BugCategoryDetailsLinePriority
Incorrect lazy initialization of static field javax.faces.webapp._ErrorPageWriter.DEBUG_PARTS in javax.faces.webapp._ErrorPageWriter.init(FacesContext)MT_CORRECTNESSLI_LAZY_INIT_STATIC107-108Low
Incorrect lazy initialization of static field javax.faces.webapp._ErrorPageWriter.ERROR_PARTS in javax.faces.webapp._ErrorPageWriter.init(FacesContext)MT_CORRECTNESSLI_LAZY_INIT_STATIC103-104Low
Exception is caught when Exception is not thrown in javax.faces.webapp._ErrorPageWriter.writeAttributes(Writer, UIComponent)STYLEREC_CATCH_EXCEPTION436High
Exception is caught when Exception is not thrown in javax.faces.webapp._ErrorPageWriter.initCauseIfAvailable(Throwable, Throwable)STYLEREC_CATCH_EXCEPTION607Medium
Exception is caught when Exception is not thrown in javax.faces.webapp._ErrorPageWriter.writeAttributes(Writer, UIComponent)STYLEREC_CATCH_EXCEPTION424Medium
Exception is caught when Exception is not thrown in javax.faces.webapp._ErrorPageWriter.getCause(Throwable)STYLEREC_CATCH_EXCEPTION553Low
Exception is caught when Exception is not thrown in javax.faces.webapp._ErrorPageWriter.initCausePerReflection(Throwable, String)STYLEREC_CATCH_EXCEPTION563Low
Exception is caught when Exception is not thrown in javax.faces.webapp._ErrorPageWriter.writeAttributes(Writer, UIComponent)STYLEREC_CATCH_EXCEPTION424Low