Skip to content

Commit 2a12048

Browse files
amaemboDave Syer
authored andcommitted
Update javadoc: it incorrectly said to return 'true'
1 parent 21b9486 commit 2a12048

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/org/springframework/samples/petclinic/owner

1 file changed

+2
-2
lines changed

src/main/java/org/springframework/samples/petclinic/owner/Owner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void addPet(Pet pet) {
101101
/**
102102
* Return the Pet with the given name, or null if none found for this Owner.
103103
* @param name to test
104-
* @return true if pet name is already in use
104+
* @return a pet if pet name is already in use
105105
*/
106106
public Pet getPet(String name) {
107107
return getPet(name, false);
@@ -127,7 +127,7 @@ public Pet getPet(Integer id) {
127127
/**
128128
* Return the Pet with the given name, or null if none found for this Owner.
129129
* @param name to test
130-
* @return true if pet name is already in use
130+
* @return a pet if pet name is already in use
131131
*/
132132
public Pet getPet(String name, boolean ignoreNew) {
133133
name = name.toLowerCase();

0 commit comments

Comments
 (0)