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

Commit

Permalink
updated the google gson import to use galasa gson
Browse files Browse the repository at this point in the history
Signed-off-by: Holly Hunt <holly.hunt1101@hotmail.com>
  • Loading branch information
Wyvinar committed May 23, 2024
1 parent 6e1f593 commit cf1df33
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 cf1df33

Please sign in to comment.