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
5 8 0 0

ejava.examples.orm.ejbql.Receipt

Bug Category Details Line Priority
ejava.examples.orm.ejbql.Receipt.getDate() may expose internal representation by returning Receipt.date MALICIOUS_CODE EI_EXPOSE_REP 38 Medium
new ejava.examples.orm.ejbql.Receipt(long, long, Date, double) may expose internal representation by storing an externally mutable object into Receipt.date MALICIOUS_CODE EI_EXPOSE_REP2 20 Medium

ejava.examples.orm.ejbql.annotated.Clerk

Bug Category Details Line Priority
ejava.examples.orm.ejbql.annotated.Clerk.getHireDate() may expose internal representation by returning Clerk.hireDate MALICIOUS_CODE EI_EXPOSE_REP 37 Medium
ejava.examples.orm.ejbql.annotated.Clerk.getTermDate() may expose internal representation by returning Clerk.termDate MALICIOUS_CODE EI_EXPOSE_REP 44 Medium
ejava.examples.orm.ejbql.annotated.Clerk.setHireDate(Date) may expose internal representation by storing an externally mutable object into Clerk.hireDate MALICIOUS_CODE EI_EXPOSE_REP2 40 Medium
ejava.examples.orm.ejbql.annotated.Clerk.setTermDate(Date) may expose internal representation by storing an externally mutable object into Clerk.termDate MALICIOUS_CODE EI_EXPOSE_REP2 47 Medium

ejava.examples.orm.ejbql.annotated.Sale

Bug Category Details Line Priority
ejava.examples.orm.ejbql.annotated.Sale.getDate() may expose internal representation by returning Sale.date MALICIOUS_CODE EI_EXPOSE_REP 64 Medium
ejava.examples.orm.ejbql.annotated.Sale.setDate(Date) may expose internal representation by storing an externally mutable object into Sale.date MALICIOUS_CODE EI_EXPOSE_REP2 67 Medium