SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.8

Threshold is medium

Effort is max

Summary

Classes Bugs Errors Missing Classes
34 21 0 0

Files

Class Bugs
petclinic.owners.Owner 1
petclinic.owners.OwnerScreen 2
petclinic.pets.Pet 7
petclinic.pets.PetScreen 2
petclinic.vets.Vet 1
petclinic.vets.VetScreen 1
petclinic.visits.Visit 4
petclinic.visits.VisitScreen 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 63 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 44 Medium
petclinic.owners.OwnerScreen.getOwners() may expose internal representation by returning OwnerScreen.owners MALICIOUS_CODE EI_EXPOSE_REP 49 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 71 Medium
petclinic.pets.Pet.getOwner() may expose internal representation by returning Pet.owner MALICIOUS_CODE EI_EXPOSE_REP 55 Medium
petclinic.pets.Pet.getType() may expose internal representation by returning Pet.type MALICIOUS_CODE EI_EXPOSE_REP 79 Medium
petclinic.pets.Pet.getVisits() may expose internal representation by returning Pet.visits MALICIOUS_CODE EI_EXPOSE_REP 87 Medium
petclinic.pets.Pet.setBirthDate(Date) may expose internal representation by storing an externally mutable object into Pet.birthDate MALICIOUS_CODE EI_EXPOSE_REP2 75 Medium
petclinic.pets.Pet.setOwner(Owner) may expose internal representation by storing an externally mutable object into Pet.owner MALICIOUS_CODE EI_EXPOSE_REP2 59 Medium
petclinic.pets.Pet.setType(PetType) may expose internal representation by storing an externally mutable object into Pet.type MALICIOUS_CODE EI_EXPOSE_REP2 83 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 50 Medium
petclinic.pets.PetScreen.getTypes() may expose internal representation by returning PetScreen.types MALICIOUS_CODE EI_EXPOSE_REP 45 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 33 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 31 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 47 Medium
petclinic.visits.Visit.getPet() may expose internal representation by returning Visit.pet MALICIOUS_CODE EI_EXPOSE_REP 63 Medium
petclinic.visits.Visit.setDate(Date) may expose internal representation by storing an externally mutable object into Visit.date MALICIOUS_CODE EI_EXPOSE_REP2 51 Medium
petclinic.visits.Visit.setPet(Pet) may expose internal representation by storing an externally mutable object into Visit.pet MALICIOUS_CODE EI_EXPOSE_REP2 67 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 40 Medium
petclinic.visits.VisitScreen.getVisit() may expose internal representation by returning VisitScreen.visit MALICIOUS_CODE EI_EXPOSE_REP 45 Medium
petclinic.visits.VisitScreen.getVisits() may expose internal representation by returning VisitScreen.visits MALICIOUS_CODE EI_EXPOSE_REP 50 Medium