From 2a12048e784eae86e61a484ecb65eec8832b9b9a Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 15 Jun 2022 11:09:14 +0200 Subject: [PATCH] Update javadoc: it incorrectly said to return 'true' --- .../org/springframework/samples/petclinic/owner/Owner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();