mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:35:50 +00:00
Update PetValidator.java
Added detailed comments to validate method
This commit is contained in:
parent
547d1e809d
commit
6c91be1f9a
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ public class PetValidator {
|
|||
* Error object is set with error messages in case of any validation failures.
|
||||
*
|
||||
* @param Pet - Pet object containing new Pet information such as name, owner
|
||||
* @return - The method sets the error object and does not return anything
|
||||
* @return void - The method sets the error object and does not return anything
|
||||
*/
|
||||
public void validate(Pet pet, Errors errors) {
|
||||
String name = pet.getName();
|
||||
|
|
Loading…
Reference in a new issue