Update javadoc: it incorrectly said to return 'true'
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user