more issues

This commit is contained in:
rhita-rh 2025-11-17 16:33:39 +01:00
parent 87bd72053a
commit 59ba47770f

View file

@ -144,6 +144,13 @@ public class Owner extends Person {
}
return null;
}
public void complicatedMethod(int a, int b, int c, int d, int e, int f) {
// Long useless logic
for (int i = 0; i < 100; i++) {
System.out.println("Do something...");
}
}
@Override
public String toString() {
@ -188,5 +195,49 @@ public class Owner extends Person {
pet.addVisit(visit);
}
public void addVisit5(Integer petId, Visit visit) {
Assert.notNull(petId, "Pet identifier must not be null!");
Assert.notNull(visit, "Visit must not be null!");
Pet pet = getPet(petId);
Assert.notNull(pet, "Invalid Pet identifier!");
pet.addVisit(visit);
}
public void addVisit1(Integer petId, Visit visit) {
Assert.notNull(petId, "Pet identifier must not be null!");
Assert.notNull(visit, "Visit must not be null!");
Pet pet = getPet(petId);
Assert.notNull(pet, "Invalid Pet identifier!");
pet.addVisit(visit);
}
public void addVisit3(Integer petId, Visit visit) {
Assert.notNull(petId, "Pet identifier must not be null!");
Assert.notNull(visit, "Visit must not be null!");
Pet pet = getPet(petId);
Assert.notNull(pet, "Invalid Pet identifier!");
pet.addVisit(visit);
}
public void addVisit4(Integer petId, Visit visit) {
Assert.notNull(petId, "Pet identifier must not be null!");
Assert.notNull(visit, "Visit must not be null!");
Pet pet = getPet(petId);
Assert.notNull(pet, "Invalid Pet identifier!");
pet.addVisit(visit);
}
}