The following document contains the results of SpotBugs
SpotBugs Version is 3.1.12
Threshold is medium
Effort is default
Class | Bugs |
---|---|
ejava.examples.orm.ejbql.Receipt | 2 |
ejava.examples.orm.ejbql.annotated.Clerk | 4 |
ejava.examples.orm.ejbql.annotated.Sale | 2 |
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 |
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 |
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 |