From fb368caae48fd3e5487567de04660b20a42b0806 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Mon, 5 Jun 2017 10:16:03 +0530 Subject: [PATCH] Removed unused gson initization --- .../device/mgt/core/geo/service/GeoServcieManagerImpl.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/geo/service/GeoServcieManagerImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/geo/service/GeoServcieManagerImpl.java index 8ff4ceb8dd1..e693bae2d8d 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/geo/service/GeoServcieManagerImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/geo/service/GeoServcieManagerImpl.java @@ -129,7 +129,6 @@ public class GeoServcieManagerImpl implements GeoService { Object contentObj = resource.getContent(); if (contentObj instanceof String[]) { String[] content = (String[]) contentObj; - Gson gson = new Gson(); for (String res : content) { Resource childRes = registry.get(res); Properties props = childRes.getProperties(); @@ -437,7 +436,6 @@ public class GeoServcieManagerImpl implements GeoService { if (contentObj instanceof String[]) { String[] content = (String[]) contentObj; - Gson gson = new Gson(); for (String res : content) { Resource childRes = registry.get(res); Properties props = childRes.getProperties(); @@ -488,7 +486,6 @@ public class GeoServcieManagerImpl implements GeoService { Object contentObj = resource.getContent(); if (contentObj instanceof String[]) { String[] content = (String[]) contentObj; - Gson gson = new Gson(); for (String res : content) { Resource childRes = registry.get(res); Properties props = childRes.getProperties();