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
543800

org.apache.myfaces.examples.autoupdatedatatable.AutoUpdateDataTableBean

BugCategoryDetailsLinePriority
Method org.apache.myfaces.examples.autoupdatedatatable.AutoUpdateDataTableBean.getTestList() uses the nextDouble method of Random to generate a random integer; using nextInt is more efficientPERFORMANCEDM_NEXTINT_VIA_NEXTDOUBLE36Medium

org.apache.myfaces.examples.clientvalidation.Customer

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.clientvalidation.Customer is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID27Low

org.apache.myfaces.examples.clientvalidation.CustomerCreateBean

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.clientvalidation.CustomerCreateBean is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID31Low

org.apache.myfaces.examples.data.SortableTableBean

BugCategoryDetailsLinePriority
Dead store to i in org.apache.myfaces.examples.data.SortableTableBean.getCars()STYLEDLS_DEAD_LOCAL_STORE101Low

org.apache.myfaces.examples.dateTimeConverter.DateTimeConverterBean

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.dateTimeConverter.DateTimeConverterBean.getDate1() may expose internal representation by returning DateTimeConverterBean.date1MALICIOUS_CODEEI_EXPOSE_REP42Medium
org.apache.myfaces.examples.dateTimeConverter.DateTimeConverterBean.getDate2() may expose internal representation by returning DateTimeConverterBean.date2MALICIOUS_CODEEI_EXPOSE_REP52Medium
org.apache.myfaces.examples.dateTimeConverter.DateTimeConverterBean.setDate1(Date) may expose internal representation by storing an externally mutable object into DateTimeConverterBean.date1MALICIOUS_CODEEI_EXPOSE_REP247Medium
org.apache.myfaces.examples.dateTimeConverter.DateTimeConverterBean.setDate2(Date) may expose internal representation by storing an externally mutable object into DateTimeConverterBean.date2MALICIOUS_CODEEI_EXPOSE_REP257Medium

org.apache.myfaces.examples.exporter.ExporterBean

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.exporter.ExporterBean is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID29Low

org.apache.myfaces.examples.fisheye.FishEyeHandler

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.fisheye.FishEyeHandler is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID38Medium

org.apache.myfaces.examples.fisheye.FishEyeHandler$BundleMap

BugCategoryDetailsLinePriority
Redundant nullcheck of java.util.ResourceBundle.getObject(String), which is known to be non-null in org.apache.myfaces.examples.fisheye.FishEyeHandler$BundleMap.containsKey(Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE126Low

org.apache.myfaces.examples.imageloop.ImageLoopBean

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.imageloop.ImageLoopBean.getImageArray() may expose internal representation by returning ImageLoopBean._imageArrayMALICIOUS_CODEEI_EXPOSE_REP51Medium

org.apache.myfaces.examples.inputAjax.InputAjaxBean

BugCategoryDetailsLinePriority
Unchecked/unconfirmed cast from javax.faces.component.UIComponent to javax.faces.component.EditableValueHolder in org.apache.myfaces.examples.inputAjax.InputAjaxBean.validateFormText1(FacesContext, UIComponent, Object)STYLEBC_UNCONFIRMED_CAST101Low
Unchecked/unconfirmed cast from javax.faces.component.UIComponent to javax.faces.component.EditableValueHolder in org.apache.myfaces.examples.inputAjax.InputAjaxBean.validateFormText2(FacesContext, UIComponent, Object)STYLEBC_UNCONFIRMED_CAST114Low
Unchecked/unconfirmed cast from javax.faces.component.UIComponent to javax.faces.component.EditableValueHolder in org.apache.myfaces.examples.inputAjax.InputAjaxBean.validateText1(FacesContext, UIComponent, Object)STYLEBC_UNCONFIRMED_CAST87Low
Unchecked/unconfirmed cast from javax.faces.component.UIComponent to javax.faces.component.EditableValueHolder in org.apache.myfaces.examples.inputAjax.InputAjaxBean.validateText2(FacesContext, UIComponent, Object)STYLEBC_UNCONFIRMED_CAST73Low
new org.apache.myfaces.examples.inputAjax.InputAjaxBean() invokes inefficient new String(String) constructorPERFORMANCEDM_STRING_CTOR53Medium
org.apache.myfaces.examples.inputAjax.InputAjaxBean.getDate1() may expose internal representation by returning InputAjaxBean.date1MALICIOUS_CODEEI_EXPOSE_REP196Medium
org.apache.myfaces.examples.inputAjax.InputAjaxBean.setDate1(Date) may expose internal representation by storing an externally mutable object into InputAjaxBean.date1MALICIOUS_CODEEI_EXPOSE_REP2201Medium

org.apache.myfaces.examples.inputSuggestAjax.Address

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.inputSuggestAjax.Address is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID42Low

org.apache.myfaces.examples.inputSuggestAjax.InputSuggestAjaxBean

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.inputSuggestAjax.InputSuggestAjaxBean.dummyDataBaseAddresses isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL40High

org.apache.myfaces.examples.inputsuggest.UserHandler

BugCategoryDetailsLinePriority
UserHandler.choices not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORLow
UserHandler.user not initialized in constructorSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORLow

org.apache.myfaces.examples.ppr.PPRExampleBean

BugCategoryDetailsLinePriority
Use of non-localized String.toUpperCase() or String.toLowerCaseI18NDM_CONVERT_CASE184Low
Method org.apache.myfaces.examples.ppr.PPRExampleBean.getPeriodicalUpdatedValues() uses the nextDouble method of Random to generate a random integer; using nextInt is more efficientPERFORMANCEDM_NEXTINT_VIA_NEXTDOUBLE216Medium

org.apache.myfaces.examples.ppr.PPRScrollerExampleBean

BugCategoryDetailsLinePriority
Class org.apache.myfaces.examples.ppr.PPRScrollerExampleBean defines non-transient non-serializable instance field carMapBAD_PRACTICESE_BAD_FIELDLow
org.apache.myfaces.examples.ppr.PPRScrollerExampleBean is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID30Low
org.apache.myfaces.examples.ppr.PPRScrollerExampleBean is Serializable but its superclass doesn't define an accessible void constructorBAD_PRACTICESE_NO_SUITABLE_CONSTRUCTOR30High

org.apache.myfaces.examples.ppr.PPRScrollerExampleBean$1

BugCategoryDetailsLinePriority
The class org.apache.myfaces.examples.ppr.PPRScrollerExampleBean$1 could be refactored into a named _static_ inner classPERFORMANCESIC_INNER_SHOULD_BE_STATIC_ANON71Low

org.apache.myfaces.examples.renderone.RenderOneBean

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.renderone.RenderOneBean is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID27Low

org.apache.myfaces.examples.roundeddiv.RoundedDivBean

BugCategoryDetailsLinePriority
Use of non-localized String.toUpperCase() or String.toLowerCaseI18NDM_CONVERT_CASE198Low
org.apache.myfaces.examples.roundeddiv.RoundedDivBean is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID31Low

org.apache.myfaces.examples.scope.ScopeBean

BugCategoryDetailsLinePriority

org.apache.myfaces.examples.valueChangeNotifier.NotifierBean$Entry

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.valueChangeNotifier.NotifierBean$Entry is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID64Low

org.apache.myfaces.examples.valueChangeNotifier.NotifierBean$EntryList

BugCategoryDetailsLinePriority
org.apache.myfaces.examples.valueChangeNotifier.NotifierBean$EntryList is Serializable; consider declaring a serialVersionUIDBAD_PRACTICESE_NO_SERIALVERSIONID44Low