mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Update Owner.java
This commit is contained in:
parent
baaf7425b2
commit
47b92aaa46
1 changed files with 0 additions and 5 deletions
|
@ -102,11 +102,6 @@ public class Owner extends Person {
|
|||
return getPet(name, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the Pet with the given id, or null if none found for this Owner.
|
||||
* @param id to test
|
||||
* @return a pet if pet id is already in use
|
||||
*/
|
||||
public Pet getPet(Integer id) {
|
||||
for (Pet pet : getPets()) {
|
||||
if (!pet.isNew()) {
|
||||
|
|
Loading…
Reference in a new issue