You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2024/05/25 15:12:45 UTC
(causeway-app-petclinic) 02/07: Removes validation for PetOwner#updateName
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git
commit 9d9fbee3e8850cfcae3683ebaeebac4fd87cc9e9
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Sat May 25 15:33:28 2024 +0100
Removes validation for PetOwner#updateName
no longer needed, handled by the @Name meta-annotation
---
.../java/domainapp/modules/petowner/dom/petowner/PetOwner.java | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
index da3fa68..982e660 100644
--- a/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
+++ b/module-petowner/src/main/java/domainapp/modules/petowner/dom/petowner/PetOwner.java
@@ -227,15 +227,6 @@ public class PetOwner implements Comparable<PetOwner>, CalendarEventable {
@MemberSupport public String default0UpdateName() {
return getName();
}
- @MemberSupport public String validate0UpdateName(final String newName) {
- for (char prohibitedCharacter : PROHIBITED_CHARACTERS.toCharArray()) {
- if( newName.contains(""+prohibitedCharacter)) {
- return "Character '" + prohibitedCharacter + "' is not allowed.";
- }
- }
- return null;
- }
- static final String PROHIBITED_CHARACTERS = "&%$!";