diff --git a/src/main/java/org/springframework/samples/petclinic/owner/Owner.java b/src/main/java/org/springframework/samples/petclinic/owner/Owner.java index f3ecdb174..52ff1190f 100644 --- a/src/main/java/org/springframework/samples/petclinic/owner/Owner.java +++ b/src/main/java/org/springframework/samples/petclinic/owner/Owner.java @@ -101,7 +101,7 @@ public class Owner extends Person { /** * Return the Pet with the given name, or null if none found for this Owner. * @param name to test - * @return true if pet name is already in use + * @return a pet if pet name is already in use */ public Pet getPet(String name) { return getPet(name, false); @@ -127,7 +127,7 @@ public class Owner extends Person { /** * Return the Pet with the given name, or null if none found for this Owner. * @param name to test - * @return true if pet name is already in use + * @return a pet if pet name is already in use */ public Pet getPet(String name, boolean ignoreNew) { name = name.toLowerCase();