SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 3.1.12

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
20 5 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