summaryrefslogtreecommitdiffstats
path: root/common-app-api/src
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-10-25 10:12:45 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-25 10:12:45 +0000
commit37932a1c374c90338fe39a08ef68e194dfe7c384 (patch)
treee5c655602da4d385a990347e746c058ae14c5f42 /common-app-api/src
parent4a8b03f2ed94e0d7048aeca6346ec65f0c282192 (diff)
parent729eb6708fd48294c32da856c46515ff14a831d0 (diff)
Merge "align MME"
Diffstat (limited to 'common-app-api/src')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/util/JsonUtils.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/util/JsonUtils.java b/common-app-api/src/main/java/org/openecomp/sdc/common/util/JsonUtils.java
index 367b806104..9022e7246e 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/util/JsonUtils.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/util/JsonUtils.java
@@ -54,5 +54,8 @@ public class JsonUtils {
public static boolean isEmptyJson(JsonElement json) {
return json.isJsonPrimitive() ? false : JsonUtils.isEmptyJson(json.getAsJsonObject());
}
-
+
+ public static boolean isJsonNullOrEmpty(JsonObject json) {
+ return json.isJsonNull() || isEmptyJson(json);
+ }
}