diff --git a/src/main/java/com/launchdarkly/client/EventProcessor.java b/src/main/java/com/launchdarkly/client/EventProcessor.java index e88f482f7..844f3d64f 100644 --- a/src/main/java/com/launchdarkly/client/EventProcessor.java +++ b/src/main/java/com/launchdarkly/client/EventProcessor.java @@ -77,10 +77,10 @@ public void flush() { private void postEvents(List events) { - String json = LDConfig.Gson.toJson(events); + String json = LDConfig.gson.toJson(events); logger.debug("Posting " + events.size() + " event(s) to " + config.eventsURI + " with payload: " + json); - String content = LDConfig.Gson.toJson(events); + String content = LDConfig.gson.toJson(events); Request request = config.getRequestBuilder(sdkKey) .url(config.eventsURI.toString() + "/bulk") diff --git a/src/main/java/com/launchdarkly/client/FeatureFlag.java b/src/main/java/com/launchdarkly/client/FeatureFlag.java index 5212d0fc2..5fd556a97 100644 --- a/src/main/java/com/launchdarkly/client/FeatureFlag.java +++ b/src/main/java/com/launchdarkly/client/FeatureFlag.java @@ -29,11 +29,11 @@ class FeatureFlag { private final boolean deleted; static FeatureFlag fromJson(String json) { - return LDConfig.Gson.fromJson(json, FeatureFlag.class); + return LDConfig.gson.fromJson(json, FeatureFlag.class); } static Map fromJsonMap(String json) { - return LDConfig.Gson.fromJson(json, mapType); + return LDConfig.gson.fromJson(json, mapType); } FeatureFlag(String key, int version, boolean on, List prerequisites, String salt, List targets, List rules, VariationOrRollout fallthrough, Integer offVariation, List variations, boolean deleted) { diff --git a/src/main/java/com/launchdarkly/client/LDConfig.java b/src/main/java/com/launchdarkly/client/LDConfig.java index 654943d06..6524bfbb0 100644 --- a/src/main/java/com/launchdarkly/client/LDConfig.java +++ b/src/main/java/com/launchdarkly/client/LDConfig.java @@ -20,7 +20,7 @@ */ public final class LDConfig { private static final Logger logger = LoggerFactory.getLogger(LDConfig.class); - static final Gson Gson = new Gson(); + static final Gson gson = new Gson(); private static final URI DEFAULT_BASE_URI = URI.create("https://app.launchdarkly.com"); private static final URI DEFAULT_EVENTS_URI = URI.create("https://events.launchdarkly.com"); @@ -266,7 +266,7 @@ public Builder capacity(int capacity) { * Set the host to use as an HTTP proxy for making connections to LaunchDarkly. If this is not set, but * {@link #proxyPort(int)} is specified, this will default to localhost. *

- * If neither {@link #proxyHost(String)} or {@link #proxyPort(int)} are specified, + * If neither {@link #proxyHost(String)} nor {@link #proxyPort(int)} are specified, * a proxy will not be used, and {@link LDClient} will connect to LaunchDarkly directly. *

*