summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/main/java')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/util/GsonFactory.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/util/GsonFactory.java b/common-app-api/src/main/java/org/openecomp/sdc/common/util/GsonFactory.java
index 7c3bcb6cad..882422ba4a 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/util/GsonFactory.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/util/GsonFactory.java
@@ -26,13 +26,9 @@ import com.google.gson.GsonBuilder;
public class GsonFactory {
private static Gson gson = null;
- public static Gson getGson() {
+ public static synchronized Gson getGson() {
if (gson == null) {
- synchronized (GsonFactory.class) {
- if (gson == null) {
gson = new GsonBuilder().disableHtmlEscaping().serializeNulls().create();
- }
- }
}
return gson;