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 8ff4ceb8dd..e693bae2d8 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();