mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
Update Owner.java
This commit is contained in:
parent
cd923b85b4
commit
44cafcd4e6
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue