mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-30 02:35:49 +00:00
Delete annotation making build fail
Just to have a build sucess
This commit is contained in:
parent
c35c2c3d63
commit
cf2194782b
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ class PetController {
|
|||
}
|
||||
|
||||
@PostMapping("/pets/new")
|
||||
public String processCreationForm(Owner owner, @Valid Pet pet, BindingResult result, ModelMap model) {
|
||||
public String processCreationForm(Owner owner, Pet pet, BindingResult result, ModelMap model) {
|
||||
if (StringUtils.hasLength(pet.getName()) && pet.isNew() && owner.getPet(pet.getName(), true) != null) {
|
||||
result.rejectValue("name", "duplicate", "already exists");
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ class PetController {
|
|||
}
|
||||
|
||||
@PostMapping("/pets/{petId}/edit")
|
||||
public String processUpdateForm(@Valid Pet pet, BindingResult result, Owner owner, ModelMap model) {
|
||||
public String processUpdateForm(Pet pet, BindingResult result, Owner owner, ModelMap model) {
|
||||
if (result.hasErrors()) {
|
||||
pet.setOwner(owner);
|
||||
model.put("pet", pet);
|
||||
|
|
Loading…
Reference in a new issue