Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit a80e94c

Browse files
author
Dan Richelson
committed
Address PR comments
1 parent fa2b366 commit a80e94c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/main/java/com/launchdarkly/client/EventProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ public void flush() {
7777

7878
private void postEvents(List<Event> events) {
7979

80-
String json = LDConfig.Gson.toJson(events);
80+
String json = LDConfig.gson.toJson(events);
8181
logger.debug("Posting " + events.size() + " event(s) to " + config.eventsURI + " with payload: " + json);
8282

83-
String content = LDConfig.Gson.toJson(events);
83+
String content = LDConfig.gson.toJson(events);
8484

8585
Request request = config.getRequestBuilder(sdkKey)
8686
.url(config.eventsURI.toString() + "/bulk")

src/main/java/com/launchdarkly/client/FeatureFlag.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class FeatureFlag {
2929
private final boolean deleted;
3030

3131
static FeatureFlag fromJson(String json) {
32-
return LDConfig.Gson.fromJson(json, FeatureFlag.class);
32+
return LDConfig.gson.fromJson(json, FeatureFlag.class);
3333
}
3434

3535
static Map<String, FeatureFlag> fromJsonMap(String json) {
36-
return LDConfig.Gson.fromJson(json, mapType);
36+
return LDConfig.gson.fromJson(json, mapType);
3737
}
3838

3939
FeatureFlag(String key, int version, boolean on, List<Prerequisite> prerequisites, String salt, List<Target> targets, List<Rule> rules, VariationOrRollout fallthrough, Integer offVariation, List<JsonElement> variations, boolean deleted) {

src/main/java/com/launchdarkly/client/LDConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
public final class LDConfig {
2222
private static final Logger logger = LoggerFactory.getLogger(LDConfig.class);
23-
static final Gson Gson = new Gson();
23+
static final Gson gson = new Gson();
2424

2525
private static final URI DEFAULT_BASE_URI = URI.create("https://app.launchdarkly.com");
2626
private static final URI DEFAULT_EVENTS_URI = URI.create("https://events.launchdarkly.com");
@@ -266,7 +266,7 @@ public Builder capacity(int capacity) {
266266
* Set the host to use as an HTTP proxy for making connections to LaunchDarkly. If this is not set, but
267267
* {@link #proxyPort(int)} is specified, this will default to <code>localhost</code>.
268268
* <p>
269-
* If neither {@link #proxyHost(String)} or {@link #proxyPort(int)} are specified,
269+
* If neither {@link #proxyHost(String)} nor {@link #proxyPort(int)} are specified,
270270
* a proxy will not be used, and {@link LDClient} will connect to LaunchDarkly directly.
271271
* </p>
272272
*

0 commit comments

Comments
 (0)