The following document contains the results of FindBugs Report
FindBugs Version is 1.1.1
Threshold is Low
Effort is Default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
123 | 13 | 2 | 3 |
Class | Bugs |
---|---|
org.xulux.dataprovider.bean.BeanDataProvider | 2 |
org.xulux.dataprovider.bean.BeanField | 8 |
org.xulux.dataprovider.bean.BeanMapping | 2 |
org.xulux.dataprovider.bean.BeanMapping$FieldList | 1 |
Bug | Category | Details | Line |
---|---|---|---|
Method org.xulux.dataprovider.bean.BeanDataProvider.getPossibleMappingName(Class) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 224 |
Private method org.xulux.dataprovider.bean.BeanDataProvider.createMapping(Object,String) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 200-201 |
Bug | Category | Details | Line |
---|---|---|---|
Method org.xulux.dataprovider.bean.BeanField.getSetMethodArgs(Object) uses the same code for two branches | STYLE | DB_DUPLICATE_BRANCHES | 399 |
Dead store to mapping in method org.xulux.dataprovider.bean.BeanField.setValue(Object,Object) | STYLE | DLS_DEAD_LOCAL_STORE | 156 |
Method org.xulux.dataprovider.bean.BeanField.setMethod(java.lang.reflect.Method) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead | I18N | DM_CONVERT_CASE | 447 |
org.xulux.dataprovider.bean.BeanField defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 490-513 |
Load of known null value in org.xulux.dataprovider.bean.BeanField.getSetMethodArgs(Object) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 354 |
Should org.xulux.dataprovider.bean.BeanField.getArgs() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 309 |
Method org.xulux.dataprovider.bean.BeanField.setValue(Object,Object) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 207 |
Unused field: org.xulux.dataprovider.bean.BeanField.setParameterList | PERFORMANCE | UUF_UNUSED_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Method org.xulux.dataprovider.bean.BeanMapping.discover() invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead | I18N | DM_CONVERT_CASE | 380 |
org.xulux.dataprovider.bean.BeanMapping defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 414-420 |
Bug | Category | Details | Line |
---|---|---|---|
org.xulux.dataprovider.bean.BeanMapping$FieldList is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | Not available |