Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #227 from galasa-dev/holly-update-gson-iss1843
Browse files Browse the repository at this point in the history
updated the google gson import to use galasa gson
  • Loading branch information
Wyvinar authored May 23, 2024
2 parents 6e1f593 + cf1df33 commit bf280f5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.CloseableHttpClient;

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;

import dev.galasa.extensions.common.Errors;
Expand All @@ -32,7 +31,7 @@
import dev.galasa.framework.api.beans.GalasaPropertyMetadata;
import dev.galasa.framework.spi.ConfigurationPropertyStoreException;
import dev.galasa.framework.spi.IConfigurationPropertyStore;
import dev.galasa.framework.spi.utils.GalasaGsonBuilder;
import dev.galasa.framework.spi.utils.GalasaGson;

import org.apache.commons.logging.Log;

Expand Down Expand Up @@ -75,7 +74,7 @@ public class RestCPS implements IConfigurationPropertyStore {
public static final String NULL_SUFFIX = null ;

/** Galasa json adds some serialisation of dates to avoid security vulnerabilities. */
public Gson gson = new GalasaGsonBuilder(PRETTY_PRINTING_ENABLED).getGson();
public GalasaGson gson = new GalasaGson();

private class PropertyName {
String namespace;
Expand Down

0 comments on commit bf280f5

Please sign in to comment.