SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.9.8
Threshold is medium
Effort is max
Summary
| Classes |
Bugs |
Errors |
Missing Classes |
| 8 |
8 |
0 |
0 |
tutorial.domain.MyBusinessService
| Bug |
Category |
Details |
Line |
Priority |
| new tutorial.domain.MyBusinessService(EntityX) may expose internal representation by storing an externally mutable object into MyBusinessService.data |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
53 |
Medium |
| tutorial.domain.MyBusinessService.buildNotificationMessage(List): 1st parameter 'items' could be declared as java.lang.Iterable instead |
STYLE |
OCP_OVERLY_CONCRETE_PARAMETER |
88 |
Medium |
tutorial.domain.MyBusinessServiceTest
| Bug |
Category |
Details |
Line |
Priority |
| Method tutorial.domain.MyBusinessServiceTest.doBusinessOperationXyz() uses a Side Effect Constructor |
STYLE |
SEC_SIDE_EFFECT_CONSTRUCTOR |
53 |
Medium |
| Method tutorial.domain.MyBusinessServiceTest.doBusinessOperationXyzWithInvalidEmailAddress() uses a Side Effect Constructor |
STYLE |
SEC_SIDE_EFFECT_CONSTRUCTOR |
71 |
Medium |
tutorial.domain.MyBusinessServiceTest$1
| Bug |
Category |
Details |
Line |
Priority |
| Exception thrown in class tutorial.domain.MyBusinessServiceTest$1 at new tutorial.domain.MyBusinessServiceTest$1(MyBusinessServiceTest) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
55 |
Medium |
tutorial.domain.MyBusinessServiceTest$2
| Bug |
Category |
Details |
Line |
Priority |
| Exception thrown in class tutorial.domain.MyBusinessServiceTest$2 at new tutorial.domain.MyBusinessServiceTest$2(MyBusinessServiceTest, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
73 |
Medium |
tutorial.persistence.Database
| Bug |
Category |
Details |
Line |
Priority |
| Method tutorial.persistence.Database.<static initializer for Database>() prints the stack trace to the console |
STYLE |
IMC_IMMATURE_CLASS_PRINTSTACKTRACE |
50 |
Medium |
| Method tutorial.persistence.Database.find(String, Object[]) throws alternative exception from catch block without history |
CORRECTNESS |
LEST_LOST_EXCEPTION_STACK_TRACE |
76 |
Medium |