mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
Update PetValidator.java
This commit is contained in:
parent
caf296b34c
commit
f4b3ad155d
1 changed files with 0 additions and 4 deletions
|
@ -47,10 +47,6 @@ public class PetValidator implements Validator {
|
||||||
errors.rejectValue("type", REQUIRED, REQUIRED);
|
errors.rejectValue("type", REQUIRED, REQUIRED);
|
||||||
}
|
}
|
||||||
|
|
||||||
// birth date validation
|
|
||||||
if (pet.getBirthDate() == null) {
|
|
||||||
errors.rejectValue("birthDate", REQUIRED, REQUIRED);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue