FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.1.1

Threshold is Low

Effort is Default

Summary

Classes Bugs Errors Missing Classes
267 18 61 12

Files

Class Bugs
net.sf.ezmorph.MorpherRegistry 3
net.sf.ezmorph.array.ObjectArrayMorpher 1
net.sf.ezmorph.bean.BeanMorpher 2
net.sf.ezmorph.bean.MorphDynaBean 1
net.sf.ezmorph.bean.MorphDynaClass 1
net.sf.ezmorph.object.DateMorpher 4
net.sf.ezmorph.object.MapToDateMorpher 2
net.sf.ezmorph.object.ObjectListMorpher 1
net.sf.ezmorph.test.ArrayAssertions 3

net.sf.ezmorph.MorpherRegistry

Bug Category Details Line
Load of known null value in net.sf.ezmorph.MorpherRegistry.morph(Class,Object) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 149
Load of known null value in net.sf.ezmorph.MorpherRegistry.morph(Class,Object) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 154
Method net.sf.ezmorph.MorpherRegistry.morph(Class,Object) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught STYLE REC_CATCH_EXCEPTION 156

net.sf.ezmorph.array.ObjectArrayMorpher

Bug Category Details Line
Possible null pointer dereference of clazz in net.sf.ezmorph.array.ObjectArrayMorpher.supports(Class) CORRECTNESS NP_NULL_ON_SOME_PATH 128

net.sf.ezmorph.bean.BeanMorpher

Bug Category Details Line
Load of known null value in net.sf.ezmorph.bean.BeanMorpher.setProperty(Object,String,Class,Class,Object) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 158
Method net.sf.ezmorph.bean.BeanMorpher.morph(Object) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught STYLE REC_CATCH_EXCEPTION 135

net.sf.ezmorph.bean.MorphDynaBean

Bug Category Details Line
Load of known null value in net.sf.ezmorph.bean.MorphDynaBean.get(String) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 111

net.sf.ezmorph.bean.MorphDynaClass

Bug Category Details Line
net.sf.ezmorph.bean.MorphDynaClass.getDynaProperties() may expose internal representation by returning net.sf.ezmorph.bean.MorphDynaClass.dynaProperties MALICIOUS_CODE EI_EXPOSE_REP 135

net.sf.ezmorph.object.DateMorpher

Bug Category Details Line
Method net.sf.ezmorph.object.DateMorpher.morph(Object) invokes dubious String.toUpperCase() or String.toLowerCase; use the Locale parameterized version instead I18N DM_CONVERT_CASE 200
net.sf.ezmorph.object.DateMorpher.morph(Object) may expose internal representation by returning net.sf.ezmorph.object.DateMorpher.defaultValue MALICIOUS_CODE EI_EXPOSE_REP 209
net.sf.ezmorph.object.DateMorpher.DateMorpher(String[],java.util.Date,java.util.Locale,boolean) may expose internal representation by storing an externally mutable object into net.sf.ezmorph.object.DateMorpher.formats MALICIOUS_CODE EI_EXPOSE_REP2 84
net.sf.ezmorph.object.DateMorpher.DateMorpher(String[],java.util.Locale,boolean) may expose internal representation by storing an externally mutable object into net.sf.ezmorph.object.DateMorpher.formats MALICIOUS_CODE EI_EXPOSE_REP2 116

net.sf.ezmorph.object.MapToDateMorpher

Bug Category Details Line
net.sf.ezmorph.object.MapToDateMorpher.morph(Object) may expose internal representation by returning net.sf.ezmorph.object.MapToDateMorpher.defaultValue MALICIOUS_CODE EI_EXPOSE_REP 111
net.sf.ezmorph.object.MapToDateMorpher.MapToDateMorpher(java.util.Date) may expose internal representation by storing an externally mutable object into net.sf.ezmorph.object.MapToDateMorpher.defaultValue MALICIOUS_CODE EI_EXPOSE_REP2 49

net.sf.ezmorph.object.ObjectListMorpher

Bug Category Details Line
Load of known null value in net.sf.ezmorph.object.ObjectListMorpher.morph(Object) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 100

net.sf.ezmorph.test.ArrayAssertions

Bug Category Details Line
net.sf.ezmorph.test.ArrayAssertions.assertEquals(String,Object[],boolean[]) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead PERFORMANCE DM_BOOLEAN_CTOR 842
net.sf.ezmorph.test.ArrayAssertions.assertEquals(String,boolean[],Object[]) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead PERFORMANCE DM_BOOLEAN_CTOR 382
Possible null pointer dereference of expected in net.sf.ezmorph.test.ArrayAssertions.assertEquals(String,Object,Object) CORRECTNESS NP_NULL_ON_SOME_PATH 800