|
|
@@ -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;
|