Selaa lähdekoodia

Minor ctor improvement

peter_backlund 17 vuotta sitten
vanhempi
commit
dbe930178b

+ 1
- 2
dddsample/tracking/core/src/main/java/se/citerus/dddsample/tracking/core/domain/model/location/CustomsZone.java Näytä tiedosto

@@ -29,8 +29,7 @@ public class CustomsZone extends EntitySupport<CustomsZone,String> {
29 29
    */
30 30
   public CustomsZone(final String code, final String name) {
31 31
     Validate.notNull(code, "Code is required");
32
-    Validate.isTrue(VALID_PATTERN.matcher(code).matches(),
33
-      code + " is not a valid CustomsZone code (does not match pattern)");
32
+    Validate.isTrue(VALID_PATTERN.matcher(code).matches(), code + " is not a valid customs zone code (does not match pattern)");
34 33
     Validate.notNull(name, "Name is required");
35 34
     this.code = code.toUpperCase();
36 35
     this.name = name;