The notBlank validation of the type should tell which parameter is not valid.
This commit is contained in:
@@ -38,7 +38,7 @@ public class BasicType extends Type {
|
|||||||
|
|
||||||
public BasicType(String type, String name, String format) {
|
public BasicType(String type, String name, String format) {
|
||||||
super(name);
|
super(name);
|
||||||
Validate.notBlank(type);
|
Validate.notBlank(type, "Type of parameter '%s' must not be blank", name);
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.format = format;
|
this.format = format;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user