mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Refactor remove uneccasry comments
This commit is contained in:
parent
df3aee345d
commit
1aa1311497
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public class PetValidator implements Validator {
|
|||
public void validate(Object obj, Errors errors) {
|
||||
Pet pet = (Pet) obj;
|
||||
String name = pet.getName();
|
||||
// name validation
|
||||
|
||||
if (!StringUtils.hasText(name)) {
|
||||
errors.rejectValue("name", REQUIRED, REQUIRED);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue