FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is max

Summary

Classes Bugs Errors Missing Classes
20 6 0 0

ejava.jpa.example.validation.Person

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

ejava.jpa.example.validation.Purchase

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

ejava.jpa.example.validation.PurchaseItem

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