Update Owner.java

This commit is contained in:
surtexx 2023-11-17 14:21:09 +02:00 committed by GitHub
parent cd923b85b4
commit 44cafcd4e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,6 +150,8 @@ public class Owner extends Person {
* @param petId the identifier of the {@link Pet}, must not be {@literal null}.
* @param visit the visit to add, must not be {@literal null}.
*/
// test
public void addVisit(Integer petId, Visit visit) {
Assert.notNull(petId, "Pet identifier must not be null!");
@ -163,4 +165,3 @@ public class Owner extends Person {
}
}