Update Owner.java

This commit is contained in:
surtexx 2023-11-14 10:53:20 +02:00 committed by GitHub
parent baaf7425b2
commit 47b92aaa46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,11 +102,6 @@ public class Owner extends Person {
return getPet(name, false); 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) { public Pet getPet(Integer id) {
for (Pet pet : getPets()) { for (Pet pet : getPets()) {
if (!pet.isNew()) { if (!pet.isNew()) {