Minor code changes are the following:

-Removed unused variables from few files.
-Added null assertions in some tests.
-Removed unnecessary throw exceptions.
This commit is contained in:
Mousa Al Bateh 2024-10-03 20:06:42 +02:00 committed by Dave Syer
parent fc442120ce
commit ae1bb8228c
8 changed files with 16 additions and 11 deletions

View file

@ -57,10 +57,6 @@ public class Vet extends Person {
return this.specialties;
}
protected void setSpecialtiesInternal(Set<Specialty> specialties) {
this.specialties = specialties;
}
@XmlElement
public List<Specialty> getSpecialties() {
List<Specialty> sortedSpecs = new ArrayList<>(getSpecialtiesInternal());