diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/Utils.java b/json-path/src/main/java/com/jayway/jsonpath/internal/Utils.java index 20663bb7..3e54c49f 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/Utils.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/Utils.java @@ -298,6 +298,25 @@ public final class Utils { // //--------------------------------------------------------- + /** + *
Validate that the specified argument is not {@code null}; + * otherwise throwing an exception with the specified message. + *
+ *Validate.notNull(myObject, "The object must not be null");+ * + * @param
Validate that the specified argument is not {@code null}; * otherwise throwing an exception with the specified message. @@ -363,6 +382,27 @@ public final class Utils { return 1 == count; } + /** + *
Validate that the specified argument character sequence is + * neither {@code null} nor a length of zero (no characters); + * otherwise throwing an exception with the specified message. + *
+ *Validate.notEmpty(myString, "The string must not be empty");+ * + * @param
Validate that the specified argument character sequence is * neither {@code null} nor a length of zero (no characters);