Whitespace polishing: leading spaces->tabs; updated eclipse configuration to default to leading tabs for all bundles
This commit is contained in:
parent
579280d7bf
commit
986bb1995d
|
@ -35,12 +35,12 @@ public class AddOwnerForm {
|
||||||
this.clinic = clinic;
|
this.clinic = clinic;
|
||||||
}
|
}
|
||||||
|
|
||||||
@InitBinder
|
@InitBinder
|
||||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.GET)
|
@RequestMapping(method = RequestMethod.GET)
|
||||||
public String setupForm(Model model) {
|
public String setupForm(Model model) {
|
||||||
Owner owner = new Owner();
|
Owner owner = new Owner();
|
||||||
model.addAttribute(owner);
|
model.addAttribute(owner);
|
||||||
|
|
|
@ -45,12 +45,12 @@ public class AddPetForm {
|
||||||
return this.clinic.getPetTypes();
|
return this.clinic.getPetTypes();
|
||||||
}
|
}
|
||||||
|
|
||||||
@InitBinder
|
@InitBinder
|
||||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.GET)
|
@RequestMapping(method = RequestMethod.GET)
|
||||||
public String setupForm(@PathVariable("ownerId") int ownerId, Model model) {
|
public String setupForm(@PathVariable("ownerId") int ownerId, Model model) {
|
||||||
Owner owner = this.clinic.loadOwner(ownerId);
|
Owner owner = this.clinic.loadOwner(ownerId);
|
||||||
Pet pet = new Pet();
|
Pet pet = new Pet();
|
||||||
|
|
|
@ -37,10 +37,10 @@ public class AddVisitForm {
|
||||||
this.clinic = clinic;
|
this.clinic = clinic;
|
||||||
}
|
}
|
||||||
|
|
||||||
@InitBinder
|
@InitBinder
|
||||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.GET)
|
@RequestMapping(method = RequestMethod.GET)
|
||||||
public String setupForm(@PathVariable("petId") int petId, Model model) {
|
public String setupForm(@PathVariable("petId") int petId, Model model) {
|
||||||
|
|
|
@ -35,10 +35,10 @@ public class EditOwnerForm {
|
||||||
this.clinic = clinic;
|
this.clinic = clinic;
|
||||||
}
|
}
|
||||||
|
|
||||||
@InitBinder
|
@InitBinder
|
||||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.GET)
|
@RequestMapping(method = RequestMethod.GET)
|
||||||
public String setupForm(@PathVariable("ownerId") int ownerId, Model model) {
|
public String setupForm(@PathVariable("ownerId") int ownerId, Model model) {
|
||||||
|
|
|
@ -43,10 +43,10 @@ public class EditPetForm {
|
||||||
return this.clinic.getPetTypes();
|
return this.clinic.getPetTypes();
|
||||||
}
|
}
|
||||||
|
|
||||||
@InitBinder
|
@InitBinder
|
||||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.GET)
|
@RequestMapping(method = RequestMethod.GET)
|
||||||
public String setupForm(@PathVariable("petId") int petId, Model model) {
|
public String setupForm(@PathVariable("petId") int petId, Model model) {
|
||||||
|
|
|
@ -31,10 +31,10 @@ public class FindOwnersForm {
|
||||||
this.clinic = clinic;
|
this.clinic = clinic;
|
||||||
}
|
}
|
||||||
|
|
||||||
@InitBinder
|
@InitBinder
|
||||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/owners/form", method = RequestMethod.GET)
|
@RequestMapping(value = "/owners/form", method = RequestMethod.GET)
|
||||||
public String setupForm(Model model) {
|
public String setupForm(Model model) {
|
||||||
|
|
Loading…
Reference in New Issue