Skip to content

Commit 3622654

Browse files
authored
Change method static to public to create a GSON instance (#400)
1 parent a32e21d commit 3622654

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

analytics/src/main/java/com/segment/analytics/internal/AnalyticsClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static AnalyticsClient create(
9191
new AtomicBoolean(false));
9292
}
9393

94-
AnalyticsClient(
94+
public AnalyticsClient(
9595
BlockingQueue<Message> messageQueue,
9696
HttpUrl uploadUrl,
9797
SegmentService service,
@@ -134,11 +134,11 @@ public void run() {
134134
}
135135

136136
/**
137-
* Creating GSON object everytime we check the size seems costly, create one static instance
137+
* Creating GSON object everytime we check the size seems costly
138138
*
139-
* @return static gson instance
139+
* @return gson instance
140140
*/
141-
public static Gson getGsonInstance() {
141+
public Gson getGsonInstance() {
142142
if (gsonInstance == null) {
143143
gsonInstance = new Gson();
144144
}

0 commit comments

Comments
 (0)