SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.10.2
Threshold is medium
Effort is
Summary
| Classes |
Bugs |
Errors |
Missing Classes |
| 94 |
12 |
0 |
0 |
com.codebox.bean.ByteBuddyBeanCopierTest$EmptyPropertyNameBean
| Bug |
Category |
Details |
Line |
Priority |
| Unread field: com.codebox.bean.ByteBuddyBeanCopierTest$EmptyPropertyNameBean.val |
PERFORMANCE |
URF_UNREAD_FIELD |
334 |
Medium |
com.codebox.bean.ByteBuddyBeanCopierTest$VoidGetterBean
| Bug |
Category |
Details |
Line |
Priority |
| Unread field: com.codebox.bean.ByteBuddyBeanCopierTest$VoidGetterBean.name |
PERFORMANCE |
URF_UNREAD_FIELD |
358 |
Medium |
com.codebox.bean.IdentityEqualsStringBean
| Bug |
Category |
Details |
Line |
Priority |
| Comparison of String objects using == or != in com.codebox.bean.IdentityEqualsStringBean.equals(Object) |
BAD_PRACTICE |
ES_COMPARING_STRINGS_WITH_EQ |
56 |
Medium |
com.codebox.bean.JavaBeanTesterTest$ConstructorThrowingBean
| Bug |
Category |
Details |
Line |
Priority |
| Exception thrown in class com.codebox.bean.JavaBeanTesterTest$ConstructorThrowingBean at new com.codebox.bean.JavaBeanTesterTest$ConstructorThrowingBean(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
566 |
Medium |
com.codebox.bean.SampleExtensionBean
| Bug |
Category |
Details |
Line |
Priority |
| com.codebox.bean.SampleExtensionBean overrides equals in SampleBean and may not be symmetric |
CORRECTNESS |
EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC |
18 |
Medium |
com.codebox.bean.SerializableWithThreadFieldBean
| Bug |
Category |
Details |
Line |
Priority |
| com.codebox.bean.SerializableWithThreadFieldBean.getThread() may expose internal representation by returning SerializableWithThreadFieldBean.thread |
MALICIOUS_CODE |
EI_EXPOSE_REP |
37 |
Medium |
| com.codebox.bean.SerializableWithThreadFieldBean.setThread(Thread) may expose internal representation by storing an externally mutable object into SerializableWithThreadFieldBean.thread |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
47 |
Medium |
| Class com.codebox.bean.SerializableWithThreadFieldBean defines non-transient non-serializable instance field thread |
BAD_PRACTICE |
SE_BAD_FIELD |
Not available |
High |
com.codebox.builders.ExtensionBuilder
| Bug |
Category |
Details |
Line |
Priority |
| Format string should use %n rather than \n in com.codebox.builders.ExtensionBuilder.generateGetter(CtClass, String, Class) |
BAD_PRACTICE |
VA_FORMAT_STRING_USES_NEWLINE |
105 |
Medium |
| Format string should use %n rather than \n in com.codebox.builders.ExtensionBuilder.generateSetter(CtClass, String, Class) |
BAD_PRACTICE |
VA_FORMAT_STRING_USES_NEWLINE |
129 |
Medium |
com.codebox.instance.ClassInstanceAnyConstructorExceptionTest$ThrowsOnConstruct
| Bug |
Category |
Details |
Line |
Priority |
| Exception thrown in class com.codebox.instance.ClassInstanceAnyConstructorExceptionTest$ThrowsOnConstruct at new com.codebox.instance.ClassInstanceAnyConstructorExceptionTest$ThrowsOnConstruct(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
31 |
Medium |
com.codebox.instance.ConstructorInstanceExceptionTest$ThrowsOnConstruct
| Bug |
Category |
Details |
Line |
Priority |
| Exception thrown in class com.codebox.instance.ConstructorInstanceExceptionTest$ThrowsOnConstruct at new com.codebox.instance.ConstructorInstanceExceptionTest$ThrowsOnConstruct() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
56 |
Medium |