validation method added
This commit is contained in:
parent
f0c6e91309
commit
f06a3dca7e
|
|
@ -33,4 +33,10 @@ public abstract class GoogleJsonModel extends Model {
|
|||
}
|
||||
}
|
||||
|
||||
protected static void validateNullOrNonEmpty(@Nullable final Object object) throws ValidationException {
|
||||
if (object != null && isNullOrEmpty(object)) {
|
||||
throw new ValidationException("Nullable or not empty object is empty");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue