SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.9.3
Threshold is medium
Effort is max
Summary
Classes |
Bugs |
Errors |
Missing Classes |
34 |
21 |
0 |
3 |
petclinic.owners.Owner
Bug |
Category |
Details |
Line |
Priority |
petclinic.owners.Owner.getPets() may expose internal representation by returning Owner.pets |
MALICIOUS_CODE |
EI_EXPOSE_REP |
58 |
Medium |
petclinic.owners.OwnerScreen
Bug |
Category |
Details |
Line |
Priority |
petclinic.owners.OwnerScreen.getOwner() may expose internal representation by returning OwnerScreen.owner |
MALICIOUS_CODE |
EI_EXPOSE_REP |
39 |
Medium |
petclinic.owners.OwnerScreen.getOwners() may expose internal representation by returning OwnerScreen.owners |
MALICIOUS_CODE |
EI_EXPOSE_REP |
44 |
Medium |
petclinic.pets.Pet
Bug |
Category |
Details |
Line |
Priority |
petclinic.pets.Pet.getBirthDate() may expose internal representation by returning Pet.birthDate |
MALICIOUS_CODE |
EI_EXPOSE_REP |
66 |
Medium |
petclinic.pets.Pet.getOwner() may expose internal representation by returning Pet.owner |
MALICIOUS_CODE |
EI_EXPOSE_REP |
50 |
Medium |
petclinic.pets.Pet.getType() may expose internal representation by returning Pet.type |
MALICIOUS_CODE |
EI_EXPOSE_REP |
74 |
Medium |
petclinic.pets.Pet.getVisits() may expose internal representation by returning Pet.visits |
MALICIOUS_CODE |
EI_EXPOSE_REP |
82 |
Medium |
petclinic.pets.Pet.setBirthDate(Date) may expose internal representation by storing an externally mutable object into Pet.birthDate |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
70 |
Medium |
petclinic.pets.Pet.setOwner(Owner) may expose internal representation by storing an externally mutable object into Pet.owner |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
54 |
Medium |
petclinic.pets.Pet.setType(PetType) may expose internal representation by storing an externally mutable object into Pet.type |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
78 |
Medium |
petclinic.pets.PetScreen
Bug |
Category |
Details |
Line |
Priority |
petclinic.pets.PetScreen.getPet() may expose internal representation by returning PetScreen.pet |
MALICIOUS_CODE |
EI_EXPOSE_REP |
45 |
Medium |
petclinic.pets.PetScreen.getTypes() may expose internal representation by returning PetScreen.types |
MALICIOUS_CODE |
EI_EXPOSE_REP |
40 |
Medium |
petclinic.vets.Vet
Bug |
Category |
Details |
Line |
Priority |
petclinic.vets.Vet.getSpecialties() may expose internal representation by returning Vet.specialties |
MALICIOUS_CODE |
EI_EXPOSE_REP |
28 |
Medium |
petclinic.vets.VetScreen
Bug |
Category |
Details |
Line |
Priority |
petclinic.vets.VetScreen.getVets() may expose internal representation by returning VetScreen.vets |
MALICIOUS_CODE |
EI_EXPOSE_REP |
26 |
Medium |
petclinic.visits.Visit
Bug |
Category |
Details |
Line |
Priority |
petclinic.visits.Visit.getDate() may expose internal representation by returning Visit.date |
MALICIOUS_CODE |
EI_EXPOSE_REP |
42 |
Medium |
petclinic.visits.Visit.getPet() may expose internal representation by returning Visit.pet |
MALICIOUS_CODE |
EI_EXPOSE_REP |
58 |
Medium |
petclinic.visits.Visit.setDate(Date) may expose internal representation by storing an externally mutable object into Visit.date |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
46 |
Medium |
petclinic.visits.Visit.setPet(Pet) may expose internal representation by storing an externally mutable object into Visit.pet |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
62 |
Medium |
petclinic.visits.VisitScreen
Bug |
Category |
Details |
Line |
Priority |
petclinic.visits.VisitScreen.getPet() may expose internal representation by returning VisitScreen.pet |
MALICIOUS_CODE |
EI_EXPOSE_REP |
35 |
Medium |
petclinic.visits.VisitScreen.getVisit() may expose internal representation by returning VisitScreen.visit |
MALICIOUS_CODE |
EI_EXPOSE_REP |
40 |
Medium |
petclinic.visits.VisitScreen.getVisits() may expose internal representation by returning VisitScreen.visits |
MALICIOUS_CODE |
EI_EXPOSE_REP |
45 |
Medium |