From 986bb1995d255e33e8c08e68eba6d697e6319e5e Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Thu, 18 Dec 2008 14:52:45 +0000 Subject: [PATCH] Whitespace polishing: leading spaces->tabs; updated eclipse configuration to default to leading tabs for all bundles --- .../samples/petclinic/web/AddOwnerForm.java | 10 +++++----- .../samples/petclinic/web/AddPetForm.java | 10 +++++----- .../samples/petclinic/web/AddVisitForm.java | 8 ++++---- .../samples/petclinic/web/EditOwnerForm.java | 8 ++++---- .../samples/petclinic/web/EditPetForm.java | 8 ++++---- .../samples/petclinic/web/FindOwnersForm.java | 8 ++++---- 6 files changed, 26 insertions(+), 26 deletions(-) diff --git a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddOwnerForm.java b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddOwnerForm.java index 3fd60b3af4..ae139890ea 100644 --- a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddOwnerForm.java +++ b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddOwnerForm.java @@ -35,12 +35,12 @@ public class AddOwnerForm { this.clinic = clinic; } - @InitBinder - public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); - } + @InitBinder + public void setAllowedFields(WebDataBinder dataBinder) { + dataBinder.setDisallowedFields(new String[] {"id"}); + } - @RequestMapping(method = RequestMethod.GET) + @RequestMapping(method = RequestMethod.GET) public String setupForm(Model model) { Owner owner = new Owner(); model.addAttribute(owner); diff --git a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddPetForm.java b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddPetForm.java index f91a1a83d9..d2ce02eaac 100644 --- a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddPetForm.java +++ b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddPetForm.java @@ -45,12 +45,12 @@ public class AddPetForm { return this.clinic.getPetTypes(); } - @InitBinder - public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); - } + @InitBinder + public void setAllowedFields(WebDataBinder dataBinder) { + dataBinder.setDisallowedFields(new String[] {"id"}); + } - @RequestMapping(method = RequestMethod.GET) + @RequestMapping(method = RequestMethod.GET) public String setupForm(@PathVariable("ownerId") int ownerId, Model model) { Owner owner = this.clinic.loadOwner(ownerId); Pet pet = new Pet(); diff --git a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddVisitForm.java b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddVisitForm.java index 0e5cbb4531..1a2936ef82 100644 --- a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddVisitForm.java +++ b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/AddVisitForm.java @@ -37,10 +37,10 @@ public class AddVisitForm { this.clinic = clinic; } - @InitBinder - public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); - } + @InitBinder + public void setAllowedFields(WebDataBinder dataBinder) { + dataBinder.setDisallowedFields(new String[] {"id"}); + } @RequestMapping(method = RequestMethod.GET) public String setupForm(@PathVariable("petId") int petId, Model model) { diff --git a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditOwnerForm.java b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditOwnerForm.java index f35eaf6385..065eef8cb5 100644 --- a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditOwnerForm.java +++ b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditOwnerForm.java @@ -35,10 +35,10 @@ public class EditOwnerForm { this.clinic = clinic; } - @InitBinder - public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); - } + @InitBinder + public void setAllowedFields(WebDataBinder dataBinder) { + dataBinder.setDisallowedFields(new String[] {"id"}); + } @RequestMapping(method = RequestMethod.GET) public String setupForm(@PathVariable("ownerId") int ownerId, Model model) { diff --git a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditPetForm.java b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditPetForm.java index 83a3348432..395551f74a 100644 --- a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditPetForm.java +++ b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/EditPetForm.java @@ -43,10 +43,10 @@ public class EditPetForm { return this.clinic.getPetTypes(); } - @InitBinder - public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); - } + @InitBinder + public void setAllowedFields(WebDataBinder dataBinder) { + dataBinder.setDisallowedFields(new String[] {"id"}); + } @RequestMapping(method = RequestMethod.GET) public String setupForm(@PathVariable("petId") int petId, Model model) { diff --git a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/FindOwnersForm.java b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/FindOwnersForm.java index bd1ff4ffc6..c24ffbdd2b 100644 --- a/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/FindOwnersForm.java +++ b/org.springframework.samples.petclinic/src/main/java/org/springframework/samples/petclinic/web/FindOwnersForm.java @@ -31,10 +31,10 @@ public class FindOwnersForm { this.clinic = clinic; } - @InitBinder - public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); - } + @InitBinder + public void setAllowedFields(WebDataBinder dataBinder) { + dataBinder.setDisallowedFields(new String[] {"id"}); + } @RequestMapping(value = "/owners/form", method = RequestMethod.GET) public String setupForm(Model model) {