Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
harshadk-sourcefuse committed Oct 6, 2023
1 parent aa1bf81 commit 969294b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
public final class StateUtils {

public static final String CLIENT_ID_PARAM_KEY = "clientId";
private static final Gson gson = new Gson();

private StateUtils() {}

Expand All @@ -33,7 +34,7 @@ public static String decode(String encodedState) {

@SuppressWarnings("unchecked")
// Convert the JSON string to a Map
Map<String, Object> dataMap = new Gson().fromJson(decodedString, Map.class);
Map<String, Object> dataMap = gson.fromJson(decodedString, Map.class);

// Retrieve and return the state from the map
return (String) dataMap.get(CLIENT_ID_PARAM_KEY);
Expand Down

0 comments on commit 969294b

Please sign in to comment.