Update PetValidator.java

Added detailed comments to validate method
This commit is contained in:
dreamamit 2013-03-18 23:16:58 -03:00
parent 547d1e809d
commit 6c91be1f9a

View file

@ -33,7 +33,7 @@ public class PetValidator {
* Error object is set with error messages in case of any validation failures. * 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 * @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) { public void validate(Pet pet, Errors errors) {
String name = pet.getName(); String name = pet.getName();