From d66fd9843e77817a6dfb8d486a9b76dfbcc17f4e Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Thu, 12 Nov 2009 16:20:36 +0000 Subject: [PATCH] Reverted changes in r2282: now using varags again. --- .../org/springframework/samples/petclinic/web/AddOwnerForm.java | 2 +- .../org/springframework/samples/petclinic/web/AddPetForm.java | 2 +- .../org/springframework/samples/petclinic/web/AddVisitForm.java | 2 +- .../springframework/samples/petclinic/web/EditOwnerForm.java | 2 +- .../org/springframework/samples/petclinic/web/EditPetForm.java | 2 +- .../springframework/samples/petclinic/web/FindOwnersForm.java | 2 +- 6 files changed, 6 insertions(+), 6 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 9b1a78fb54..cd830aff6f 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 @@ -39,7 +39,7 @@ public class AddOwnerForm { @InitBinder public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); + dataBinder.setDisallowedFields("id"); } @RequestMapping(method = RequestMethod.GET) 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 a3fe42344a..586cf3d67c 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 @@ -49,7 +49,7 @@ public class AddPetForm { @InitBinder public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); + dataBinder.setDisallowedFields("id"); } @RequestMapping(method = RequestMethod.GET) 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 1fb03552a8..6836864402 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 @@ -41,7 +41,7 @@ public class AddVisitForm { @InitBinder public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); + dataBinder.setDisallowedFields("id"); } @RequestMapping(method = RequestMethod.GET) 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 d46c797c15..0b65de51bf 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 @@ -39,7 +39,7 @@ public class EditOwnerForm { @InitBinder public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); + dataBinder.setDisallowedFields("id"); } @RequestMapping(method = RequestMethod.GET) 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 61e0e1a2bf..1a7fd6ed3c 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 @@ -47,7 +47,7 @@ public class EditPetForm { @InitBinder public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); + dataBinder.setDisallowedFields("id"); } @RequestMapping(method = RequestMethod.GET) 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 193fa49d93..eb93fabad0 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 @@ -35,7 +35,7 @@ public class FindOwnersForm { @InitBinder public void setAllowedFields(WebDataBinder dataBinder) { - dataBinder.setDisallowedFields(new String[] {"id"}); + dataBinder.setDisallowedFields("id"); } @RequestMapping(value = "/owners/search", method = RequestMethod.GET)