Removed unused gson initization

revert-70aa11f8
Rasika Perera 7 years ago
parent 9865a260d4
commit fb368caae4

@ -129,7 +129,6 @@ public class GeoServcieManagerImpl implements GeoService {
Object contentObj = resource.getContent(); Object contentObj = resource.getContent();
if (contentObj instanceof String[]) { if (contentObj instanceof String[]) {
String[] content = (String[]) contentObj; String[] content = (String[]) contentObj;
Gson gson = new Gson();
for (String res : content) { for (String res : content) {
Resource childRes = registry.get(res); Resource childRes = registry.get(res);
Properties props = childRes.getProperties(); Properties props = childRes.getProperties();
@ -437,7 +436,6 @@ public class GeoServcieManagerImpl implements GeoService {
if (contentObj instanceof String[]) { if (contentObj instanceof String[]) {
String[] content = (String[]) contentObj; String[] content = (String[]) contentObj;
Gson gson = new Gson();
for (String res : content) { for (String res : content) {
Resource childRes = registry.get(res); Resource childRes = registry.get(res);
Properties props = childRes.getProperties(); Properties props = childRes.getProperties();
@ -488,7 +486,6 @@ public class GeoServcieManagerImpl implements GeoService {
Object contentObj = resource.getContent(); Object contentObj = resource.getContent();
if (contentObj instanceof String[]) { if (contentObj instanceof String[]) {
String[] content = (String[]) contentObj; String[] content = (String[]) contentObj;
Gson gson = new Gson();
for (String res : content) { for (String res : content) {
Resource childRes = registry.get(res); Resource childRes = registry.get(res);
Properties props = childRes.getProperties(); Properties props = childRes.getProperties();

Loading…
Cancel
Save