The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is max
Class | Bugs |
---|---|
ejava.jpa.example.validation.Person | 2 |
ejava.jpa.example.validation.Purchase | 3 |
ejava.jpa.example.validation.PurchaseItem | 1 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
ejava.jpa.example.validation.Person.getBirthDate() may expose internal representation by returning Person.birthDate | MALICIOUS_CODE | EI_EXPOSE_REP | 67 | Medium |
ejava.jpa.example.validation.Person.setBirthDate(Date) may expose internal representation by storing an externally mutable object into Person.birthDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 69 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
ejava.jpa.example.validation.Purchase.getDate() may expose internal representation by returning Purchase.date | MALICIOUS_CODE | EI_EXPOSE_REP | 35 | Medium |
ejava.jpa.example.validation.Purchase.setDate(Date) may expose internal representation by storing an externally mutable object into Purchase.date | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 | Medium |
Return value of java.math.BigDecimal.add(BigDecimal) ignored in ejava.jpa.example.validation.Purchase.getTotal() | CORRECTNESS | RV_RETURN_VALUE_IGNORED | 59 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Argument of type String can't be handled by format specifier %d in ejava.jpa.example.validation.PurchaseItem.toString() | CORRECTNESS | VA_FORMAT_STRING_BAD_CONVERSION | 57 | High |