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 2026/04/09 10:56:49 UTC

(causeway-app-petclinic) 02/03: Removes validation for PetOwner#updateName

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to tag tags/3.6.0/03-12-moves-validation-onto-metaannotation
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git

commit 6a822e344bd852b82b3a0f6eee984bacbd65860f
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 c1715a7..91756e2 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 PetOwner updateName(
     @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 = "&%$!";