- this.description = description.orNull();
- this.reference = reference.orNull();
-
- errorAppTag = "invalid-regular-expression";
- errorMessage = String.format("String %s is not valid regular expression.", regex);
+ this.description = description;
+ this.reference = reference;
+ this.errorAppTag = errorAppTag != null ? errorAppTag : "invalid-regular-expression";
+ this.errorMessage = errorMessage != null ? errorMessage : String.format(
+ "String %s is not valid regular expression.", regex);